Commit Graph

252 Commits

Author SHA1 Message Date
Zbigniew Jędrzejewski-Szmek
85565d7b88 Rebuilt for updated systemd-rpm-macros
See https://pagure.io/fesco/issue/2583.
2021-03-02 16:12:54 +01:00
Fedora Release Engineering
84c08cdb36 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 14:55:50 +00:00
Petr Písař
96c8603e67 Do not use a pointless compiler-internal __P() macro 2020-12-14 16:48:22 +01:00
Petr Písař
3c3fbd0f85 Warn when kernel XFS large time stamp does fit into (32-bit) user-space time_t 2020-12-14 16:42:37 +01:00
Petr Písař
2c6fe2906d Fix a compilation warning in quotaops.c 2020-12-14 16:37:54 +01:00
Petr Písař
d814f10a3e Remove a dead code from process_file() 2020-12-14 16:34:44 +01:00
Petr Písař
46caab5068 4.06 bump 2020-11-10 12:54:39 +01:00
Petr Písař
917fd267da Complain that ext4 external quota files are deprecated 2020-11-06 12:16:31 +01:00
Petr Písař
67fdd80764 Add a --filesystem option to the quota tool 2020-11-06 12:13:54 +01:00
Petr Písař
6a6022b86d Add a synopsis for a project quota option in the quota tool 2020-11-06 12:11:31 +01:00
Petr Písař
5cf058e49c Support grace period expirations past 2038 year for XFS 2020-11-06 12:08:31 +01:00
Petr Písař
716ce4c86c Require libtirpc-devel by quota-devel because of rpc/rpc.h
rpc/rpc.h was provided by glibc-devel and requiring glibc* is
prohibited. The file was moved to libtirpc-devel, so we can declare
the dependency now.
2020-09-02 14:17:14 +02:00
Petr Písař
935de57c60 Modernize systemd unit packaging 2020-08-24 10:23:39 +02:00
Petr Písař
a6ce046f13 Fix setting individual limits for XFS 2020-08-24 10:09:51 +02:00
Fedora Release Engineering
ba1d88bcb7 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-08-01 07:42:00 +00:00
Fedora Release Engineering
cd6174ad98 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-29 05:22:25 +00:00
Petr Písař
05f92155b5 Set kernel option when setting XFS grace times 2020-05-18 12:44:19 +02:00
Petr Písař
8b6f8d5665 Pass quota type for Q_XFS_GETQSTAT 2020-05-13 11:36:55 +02:00
Petr Písař
a79338e43d Use an upstream's patch for ignoring disabled quotas 2020-03-26 16:54:18 +01:00
Petr Písař
467ef82fdb Fix ignoring disabled quotas 2020-02-21 10:41:19 +01:00
Fedora Release Engineering
7275d7d7be - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-30 17:09:52 +00:00
Petr Písař
6e9d785e8c Remove a patch for freeing a parsed configuration in warnquota
Upstream claims that the allocation happens only once and then the
program exits, thus no need for free().

Also annotate accepted patches.
2019-11-06 11:06:18 +01:00
Petr Písař
c9c99ce66b Modernize a spec file 2019-11-05 15:15:28 +01:00
Petr Písař
e2c93dbf20 Free parsed configuration in warnquota 2019-11-05 15:14:21 +01:00
Petr Písař
5865da5790 Initialize all members of a configparams structure in warnquota 2019-11-05 14:56:00 +01:00
Petr Písař
0c47f5f1ee Document CC_TO in warquota.conf is looked up with LDAP 2019-11-05 12:52:28 +01:00
Petr Písař
a2a7378815 Report detailed LDAP failures 2019-11-05 12:48:53 +01:00
Petr Písař
09b6e2dfe6 Fix checking for the LDAP failures in the warnquota tool 2019-11-05 12:04:20 +01:00
Petr Písař
8cf703609d Fix warnquota --help output 2019-11-05 12:00:55 +01:00
Petr Písař
9e26235974 Optimize out useless checking of file systems with hidden quota files 2019-11-05 11:58:24 +01:00
Petr Písař
796c4e4310 Make-a-directory-for-quota_nld-PID-file-configurable.patch accepted by upstream 2019-11-05 09:38:44 +01:00
Fedora Release Engineering
376b09c204 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-26 18:02:49 +00:00
Petr Písař
cd5d62685c Move quota_nld.pid file to /run
"systemctl start quota_nld" complained about a deprecated /var/run path
into a syslog.
2019-05-30 13:53:14 +02:00
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
Petr Písař
57e1da2761 Teach rpmlint that no setgroups() call is fine 2019-05-29 09:08:51 +02:00
Petr Písař
0d36e5c387 Fix Free Software Foundation's postal address 2019-05-29 07:52:44 +02:00
Petr Písař
5eda098e50 Report an error if an RPC fails on an explicitly requested file system 2019-05-29 07:41:48 +02:00
Petr Písař
70e3c0c1f2 4.05 bump 2019-04-02 11:56:30 +02:00
Fedora Release Engineering
94d5a2f113 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-02 10:55:59 +00:00
Petr Písař
28c6e8b39b Rename rpmlint configuration file 2018-08-23 12:57:25 +02:00
Petr Písař
bfc729c3dc Fix file descriptor leaks in error code paths 2018-08-23 12:12:35 +02:00
Petr Písař
599891fece Update license annotation 2018-07-24 15:28:54 +02:00
Petr Písař
47a961a4db Distinguish between none quota limits and no allocated resources in quota(1) tool output 2018-07-24 12:24:15 +02:00
Fedora Release Engineering
467928d37f - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-14 03:17:17 +00:00
Petr Písař
84b2b0185d Fix current block usage limit in RPC client 2018-05-30 13:54:10 +02:00
Petr Písař
56368a413c Listen-on-a-TCP-socket.patch accepted 2018-05-30 13:19:59 +02:00
Petr Písař
706ef8f2c4 Fix busy loop in rpc.rquotad 2018-05-22 14:10:20 +02:00
Fedora Release Engineering
fd1c8496db - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-09 12:36:38 +00:00
Petr Písař
cd4ae93ee7 Report an error if quota file magic is invalid 2018-02-05 17:36:34 +01:00
Petr Písař
361e07183a Report an error when quotacheck fails to cache quota files 2018-02-05 17:31:02 +01:00