selinux-refpolicy.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] Add fc for /var/lib/misc/logrotate.status
@ 2018-10-12 22:23 Luis Ressel
  2018-10-12 22:23 ` [PATCH 2/2] Realign logrotate.fc, remove an obvious comment Luis Ressel
  2018-10-13 17:34 ` [PATCH 1/2] Add fc for /var/lib/misc/logrotate.status Chris PeBenito
  0 siblings, 2 replies; 4+ messages in thread
From: Luis Ressel @ 2018-10-12 22:23 UTC (permalink / raw)
  To: selinux-refpolicy

Some distros configure logrotate to put its status file somewhere else
than the default /var/lib/logrotate.status. Debian puts it in
/var/lib/logrotate/, and Gentoo uses /var/lib/misc/.
---
 policy/modules/admin/logrotate.fc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/policy/modules/admin/logrotate.fc b/policy/modules/admin/logrotate.fc
index dac1af39..cd43ab28 100644
--- a/policy/modules/admin/logrotate.fc
+++ b/policy/modules/admin/logrotate.fc
@@ -9,4 +9,4 @@
 /usr/sbin/logrotate	--	gen_context(system_u:object_r:logrotate_exec_t,s0)
 
 /var/lib/logrotate(/.*)?	gen_context(system_u:object_r:logrotate_var_lib_t,s0)
-/var/lib/logrotate\.status	--	gen_context(system_u:object_r:logrotate_var_lib_t,s0)
+/var/lib/(misc/)?logrotate\.status	--	gen_context(system_u:object_r:logrotate_var_lib_t,s0)
-- 
2.19.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-10-13 17:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-12 22:23 [PATCH 1/2] Add fc for /var/lib/misc/logrotate.status Luis Ressel
2018-10-12 22:23 ` [PATCH 2/2] Realign logrotate.fc, remove an obvious comment Luis Ressel
2018-10-13 17:34   ` Chris PeBenito
2018-10-13 17:34 ` [PATCH 1/2] Add fc for /var/lib/misc/logrotate.status Chris PeBenito

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).