SELinux-Refpolicy Archive on lore.kernel.org
 help / 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	[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	[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, back to index

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

SELinux-Refpolicy Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/selinux-refpolicy/0 selinux-refpolicy/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 selinux-refpolicy selinux-refpolicy/ https://lore.kernel.org/selinux-refpolicy \
		selinux-refpolicy@vger.kernel.org selinux-refpolicy@archiver.kernel.org
	public-inbox-index selinux-refpolicy


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.selinux-refpolicy


AGPL code for this site: git clone https://public-inbox.org/ public-inbox