net-fs/samba: add dev-python/setproctitle as optfeature

When running samba-tool or samba-gpupdate (available with addc and/or ads
USE flags) and specify passwords in command line, these scripts optionally
import `dev-python/setproctitle` to hide those password in the process table

Signed-off-by: Cristian Othón Martínez Vera <cfuga@cfuga.mx>
Part-of: https://github.com/gentoo/gentoo/pull/45393
Closes: https://github.com/gentoo/gentoo/pull/45393
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Cristian Othón Martínez Vera
2026-01-15 19:25:52 -06:00
committed by Sam James
parent 555e1c539d
commit a4233bdcd6
3 changed files with 15 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ EAPI=8
PYTHON_COMPAT=( python3_{11..13} )
PYTHON_REQ_USE="threads(+),xml(+)"
inherit python-single-r1 flag-o-matic waf-utils multilib-minimal linux-info systemd pam tmpfiles
inherit python-single-r1 flag-o-matic waf-utils multilib-minimal linux-info optfeature systemd pam tmpfiles
DESCRIPTION="Samba Suite Version 4"
HOMEPAGE="https://samba.org/"
@@ -390,4 +390,8 @@ multilib_src_install() {
pkg_postinst() {
tmpfiles_process samba.conf
if use addc || use ads ; then
optfeature "Hide passwords from command line when using samba-tool or samba-gpupdate" dev-python/setproctitle
fi
}

View File

@@ -5,7 +5,7 @@ EAPI=8
PYTHON_COMPAT=( python3_{11..13} )
PYTHON_REQ_USE="threads(+),xml(+)"
inherit python-single-r1 flag-o-matic waf-utils multilib-minimal linux-info systemd pam tmpfiles
inherit python-single-r1 flag-o-matic waf-utils multilib-minimal linux-info optfeature systemd pam tmpfiles
DESCRIPTION="Samba Suite Version 4"
HOMEPAGE="https://samba.org/"
@@ -390,4 +390,8 @@ multilib_src_install() {
pkg_postinst() {
tmpfiles_process samba.conf
if use addc || use ads ; then
optfeature "Hide passwords from command line when using samba-tool or samba-gpupdate" dev-python/setproctitle
fi
}

View File

@@ -5,7 +5,7 @@ EAPI=8
PYTHON_COMPAT=( python3_{11..14} )
PYTHON_REQ_USE="threads(+),xml(+)"
inherit python-single-r1 flag-o-matic waf-utils multilib-minimal linux-info systemd pam tmpfiles
inherit python-single-r1 flag-o-matic waf-utils multilib-minimal linux-info optfeature systemd pam tmpfiles
DESCRIPTION="Samba Suite Version 4"
HOMEPAGE="https://samba.org/"
@@ -393,4 +393,8 @@ multilib_src_install() {
pkg_postinst() {
tmpfiles_process samba.conf
if use addc || use ads ; then
optfeature "Hide passwords from command line when using samba-tool or samba-gpupdate" dev-python/setproctitle
fi
}