Page MenuHomeFreeBSD

Allow to specify umask(1) for a service started with rc(8)
AcceptedPublic

Authored by eugen_grosbein.net on Aug 23 2022, 12:07 PM.

Details

Summary

Currently we have multiple ways to modify environment (variables, working directory, limits etc.) for a service without touching its startup script but no way to change default umask(1) value. None of tools working with login classes change umask.

Also, we have no ways to extract umask by class name for shell script. Let us deal with the problem in simple way via new servicename_umask knob for rc.conf(5)

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

Test Plan

N/A

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 47078

Event Timeline

pauamma added a subscriber: pauamma.

Manual page change LGTM and seems consistent with what I think the intent of the rc.subr change is. Can't vouch for the implementation.

This revision is now accepted and ready to land.Aug 25 2022, 10:03 PM

Manual page change LGTM and seems consistent with what I think the intent of the rc.subr change is. Can't vouch for the implementation.

Thanks.

I'm going to commit this soon unless an objection raised.