System administration tools for monitoring users' disk usage
Go to file
Petr Písař 6787f00c45 Run quota_nld service as tty group
quota_nld daemon writes to /dev/pts/N files thag has 0620 mode and
some_user:tty ownership.

If the daemon runs as a systemd service, SELinux denies DAC_OVERRIDE
capability that allows a root user to access files without matching
permissions.

We could fix it by adding a special SELinux rule, but SELinux
considers DAC_OVERRIDE harmful and prefers fixing the file permissions
instead.

We could patch quota_nld source to setgid() to tty group, but the
exact group name or ID is varies among distributions. This is not
upstreamable.

We could patch quota_nld to fork and setgid() to a group equaled to the
targeted device group. But that seems way to complicated if we can
simply patch systemd unit file to change group to "tty". Thus
I selected this approach.
2019-05-29 14:05:55 +02:00
.gitignore 4.05 bump 2019-04-02 11:56:30 +02:00
quota_nld.service Run quota_nld service as tty group 2019-05-29 14:05:55 +02:00
quota_nld.sysconfig Document --print-below option in quota_nld service 2011-09-01 16:05:16 +02:00
quota-4.03-Validate-upper-bound-of-RPC-port.patch 4.03 bump 2016-01-07 11:15:17 +01:00
quota-4.04-warnquota-configuration-tunes.patch 4.04 bump 2017-09-06 16:53:51 +02:00
quota-4.05-COPYING-Update-mailing-address.patch Fix Free Software Foundation's postal address 2019-05-29 07:52:44 +02:00
quota-4.05-Make-messages-about-failures-for-NFS-consistent-with.patch Report an error if an RPC fails on an explicitly requested file system 2019-05-29 07:41:48 +02:00
quota-4.05-quotaops-Do-not-leak-dquot-structures-on-failure.patch Report an error if an RPC fails on an explicitly requested file system 2019-05-29 07:41:48 +02:00
quota-4.05-quotaops-Do-not-return-partial-list-from-getprivs.patch Report an error if an RPC fails on an explicitly requested file system 2019-05-29 07:41:48 +02:00
quota-4.05-quotaops-Make-error-string-translatable.patch Report an error if an RPC fails on an explicitly requested file system 2019-05-29 07:41:48 +02:00
quota-4.05-Revert-configure.ac-fix-pkg_check_modules-calls.patch 4.05 bump 2019-04-02 11:56:30 +02:00
quota-4.05-rpc-Clarify-error-message-when-cannot-connect-to-rpc.patch Report an error if an RPC fails on an explicitly requested file system 2019-05-29 07:41:48 +02:00
quota-4.05-setquota-Report-failure-to-obtain-quota-information.patch Report an error if an RPC fails on an explicitly requested file system 2019-05-29 07:41:48 +02:00
quota.rpmlintrc Teach rpmlint that no setgroups() call is fine 2019-05-29 09:08:51 +02:00
quota.spec Run quota_nld service as tty group 2019-05-29 14:05:55 +02:00
rpc-rquotad.service Start rpc-rquotad.service when starting nfs-server.service 2016-03-10 15:30:15 +01:00
rpc-rquotad.sysconfig Add rpc-rquotad.service file 2015-04-02 12:48:52 +02:00
sources 4.05 bump 2019-04-02 11:56:30 +02:00