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

* [PATCH 2/2] Realign logrotate.fc, remove an obvious comment
  2018-10-12 22:23 [PATCH 1/2] Add fc for /var/lib/misc/logrotate.status Luis Ressel
@ 2018-10-12 22:23 ` 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
  1 sibling, 1 reply; 4+ messages in thread
From: Luis Ressel @ 2018-10-12 22:23 UTC (permalink / raw)
  To: selinux-refpolicy

---
 policy/modules/admin/logrotate.fc | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/policy/modules/admin/logrotate.fc b/policy/modules/admin/logrotate.fc
index cd43ab28..fd5497f3 100644
--- a/policy/modules/admin/logrotate.fc
+++ b/policy/modules/admin/logrotate.fc
@@ -1,12 +1,11 @@
 /etc/cron\.(daily|weekly)/logrotate	--	gen_context(system_u:object_r:logrotate_exec_t,s0)
 /etc/cron\.(daily|weekly)/sysklogd	--	gen_context(system_u:object_r:logrotate_exec_t,s0)
 
-/usr/bin/logrotate	--	gen_context(system_u:object_r:logrotate_exec_t,s0)
+/usr/bin/logrotate			--	gen_context(system_u:object_r:logrotate_exec_t,s0)
 
-# Systemd unit file
-/usr/lib/systemd/system/[^/]*logrotate.*	--	gen_context(system_u:object_r:logrotate_unit_t,s0)
+/usr/lib/systemd/system/[^/]*logrotate.*  --	gen_context(system_u:object_r:logrotate_unit_t,s0)
 
-/usr/sbin/logrotate	--	gen_context(system_u:object_r:logrotate_exec_t,s0)
+/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(/.*)?			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

* Re: [PATCH 1/2] Add fc for /var/lib/misc/logrotate.status
  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
  1 sibling, 0 replies; 4+ messages in thread
From: Chris PeBenito @ 2018-10-13 17:34 UTC (permalink / raw)
  To: Luis Ressel, selinux-refpolicy

On 10/12/2018 06:23 PM, Luis Ressel wrote:
> 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)
> 

Merged.

-- 
Chris PeBenito

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

* Re: [PATCH 2/2] Realign logrotate.fc, remove an obvious comment
  2018-10-12 22:23 ` [PATCH 2/2] Realign logrotate.fc, remove an obvious comment Luis Ressel
@ 2018-10-13 17:34   ` Chris PeBenito
  0 siblings, 0 replies; 4+ messages in thread
From: Chris PeBenito @ 2018-10-13 17:34 UTC (permalink / raw)
  To: Luis Ressel, selinux-refpolicy

On 10/12/2018 06:23 PM, Luis Ressel wrote:
> ---
>   policy/modules/admin/logrotate.fc | 9 ++++-----
>   1 file changed, 4 insertions(+), 5 deletions(-)
> 
> diff --git a/policy/modules/admin/logrotate.fc b/policy/modules/admin/logrotate.fc
> index cd43ab28..fd5497f3 100644
> --- a/policy/modules/admin/logrotate.fc
> +++ b/policy/modules/admin/logrotate.fc
> @@ -1,12 +1,11 @@
>   /etc/cron\.(daily|weekly)/logrotate	--	gen_context(system_u:object_r:logrotate_exec_t,s0)
>   /etc/cron\.(daily|weekly)/sysklogd	--	gen_context(system_u:object_r:logrotate_exec_t,s0)
>   
> -/usr/bin/logrotate	--	gen_context(system_u:object_r:logrotate_exec_t,s0)
> +/usr/bin/logrotate			--	gen_context(system_u:object_r:logrotate_exec_t,s0)
>   
> -# Systemd unit file
> -/usr/lib/systemd/system/[^/]*logrotate.*	--	gen_context(system_u:object_r:logrotate_unit_t,s0)
> +/usr/lib/systemd/system/[^/]*logrotate.*  --	gen_context(system_u:object_r:logrotate_unit_t,s0)
>   
> -/usr/sbin/logrotate	--	gen_context(system_u:object_r:logrotate_exec_t,s0)
> +/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(/.*)?			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)

Merged.

-- 
Chris PeBenito

^ permalink raw reply	[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).