commit:     a4233bdcd611bfb0fa38a098a0dc1a0640173634
Author:     Cristian Othón Martínez Vera <cfuga <AT> cfuga <DOT> mx>
AuthorDate: Fri Jan 16 01:25:52 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jan 16 16:19:36 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4233bdc

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 <AT> 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 <AT> gentoo.org>

 net-fs/samba/samba-4.21.10-r1.ebuild | 6 +++++-
 net-fs/samba/samba-4.22.7.ebuild     | 6 +++++-
 net-fs/samba/samba-4.23.4.ebuild     | 6 +++++-
 3 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/net-fs/samba/samba-4.21.10-r1.ebuild 
b/net-fs/samba/samba-4.21.10-r1.ebuild
index 531a3bb9ecdb..a4c5d52fb608 100644
--- a/net-fs/samba/samba-4.21.10-r1.ebuild
+++ b/net-fs/samba/samba-4.21.10-r1.ebuild
@@ -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
 }

diff --git a/net-fs/samba/samba-4.22.7.ebuild b/net-fs/samba/samba-4.22.7.ebuild
index 99e536e75553..59f7231f7614 100644
--- a/net-fs/samba/samba-4.22.7.ebuild
+++ b/net-fs/samba/samba-4.22.7.ebuild
@@ -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
 }

diff --git a/net-fs/samba/samba-4.23.4.ebuild b/net-fs/samba/samba-4.23.4.ebuild
index 9dc5f4887e31..e1f13f879924 100644
--- a/net-fs/samba/samba-4.23.4.ebuild
+++ b/net-fs/samba/samba-4.23.4.ebuild
@@ -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
 }

Reply via email to