]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
rc.conf(5): add <service>_umask to run the service using this value
authorEugene Grosbein <eugen@FreeBSD.org>
Sun, 28 Aug 2022 05:45:23 +0000 (12:45 +0700)
committerEugene Grosbein <eugen@FreeBSD.org>
Sat, 2 Dec 2023 08:15:52 +0000 (15:15 +0700)
commit2d6a03dd43c758cdd7c7dd9590459d1aa77d4333
tree991a79196a30a6998296a01a72271d0a755ec72f
parented36613e65ab59ba8e9c2ca73ca8188457b51d01
rc.conf(5): add <service>_umask to run the service using this value

None of tools working with login classes change umask(1)
and we had no ways to specify non-default umask for a service
not touching its startup script. This change makes in possible.

Some file-sharing services that create new files may benefit from it.

Differential: https://reviews.freebsd.org/D36309

(cherry picked from commit 160a2f2cdda806e104c0d3194bfb84b208ad1ae8)
libexec/rc/rc.subr
share/man/man5/rc.conf.5