SELinux-Refpolicy Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH 1/1] Resolve denial about logging to journal from chkpwd
@ 2019-03-21 18:29 Sugar, David
  2019-03-21 18:29 ` [PATCH 1/1] Resolve denial about logging to journal from dbus Sugar, David
  2019-03-24 18:38 ` [PATCH 1/1] Resolve denial about logging to journal from chkpwd Chris PeBenito
  0 siblings, 2 replies; 4+ messages in thread
From: Sugar, David @ 2019-03-21 18:29 UTC (permalink / raw)
  To: selinux-refpolicy

type=AVC msg=audit(1553029357.588:513): avc:  denied  { sendto } for  pid=7577 comm="unix_chkpwd" path="/dev/log" scontext=toor_u:staff_r:chkpwd_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=unix_dgram_socket permissive=0

Signed-off-by: Dave Sugar <dsugar@tresys.com>
---
 policy/modules/system/authlogin.te | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/policy/modules/system/authlogin.te b/policy/modules/system/authlogin.te
index 2b7586a2..d0c71285 100644
--- a/policy/modules/system/authlogin.te
+++ b/policy/modules/system/authlogin.te
@@ -144,6 +144,11 @@ ifdef(`distro_ubuntu',`
 	')
 ')
 
+ifdef(`init_systemd',`
+	# for journald /dev/log
+	kernel_dgram_send(chkpwd_t)
+')
+
 optional_policy(`
 	# apache leaks file descriptors
 	apache_dontaudit_rw_tcp_sockets(chkpwd_t)
-- 
2.20.1


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

* [PATCH 1/1] Resolve denial about logging to journal from dbus
  2019-03-21 18:29 [PATCH 1/1] Resolve denial about logging to journal from chkpwd Sugar, David
@ 2019-03-21 18:29 ` Sugar, David
  2019-03-24 18:39   ` Chris PeBenito
  2019-03-24 18:38 ` [PATCH 1/1] Resolve denial about logging to journal from chkpwd Chris PeBenito
  1 sibling, 1 reply; 4+ messages in thread
From: Sugar, David @ 2019-03-21 18:29 UTC (permalink / raw)
  To: selinux-refpolicy

type=AVC msg=audit(1553013821.597:9897): avc:  denied  { sendto } for  pid=7377 comm="dbus-daemon" path="/dev/log" scontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 tcontext=system_u:system_r:kernel_t:s0 tclass=unix_dgram_socket permissive=1

Signed-off-by: Dave Sugar <dsugar@tresys.com>
---
 policy/modules/services/dbus.te | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/policy/modules/services/dbus.te b/policy/modules/services/dbus.te
index 24d12c64..fd7e2436 100644
--- a/policy/modules/services/dbus.te
+++ b/policy/modules/services/dbus.te
@@ -162,6 +162,9 @@ ifdef(`init_systemd', `
 	# for /run/systemd/dynamic-uid/
 	init_list_pids(system_dbusd_t)
 	init_read_runtime_symlinks(system_dbusd_t)
+
+	# for journald /dev/log
+	kernel_dgram_send(system_dbusd_t)
 ')
 
 optional_policy(`
-- 
2.20.1


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

* Re: [PATCH 1/1] Resolve denial about logging to journal from chkpwd
  2019-03-21 18:29 [PATCH 1/1] Resolve denial about logging to journal from chkpwd Sugar, David
  2019-03-21 18:29 ` [PATCH 1/1] Resolve denial about logging to journal from dbus Sugar, David
@ 2019-03-24 18:38 ` Chris PeBenito
  1 sibling, 0 replies; 4+ messages in thread
From: Chris PeBenito @ 2019-03-24 18:38 UTC (permalink / raw)
  To: Sugar, David, selinux-refpolicy

On 3/21/19 2:29 PM, Sugar, David wrote:
> type=AVC msg=audit(1553029357.588:513): avc:  denied  { sendto } for  pid=7577 comm="unix_chkpwd" path="/dev/log" scontext=toor_u:staff_r:chkpwd_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=unix_dgram_socket permissive=0
> 
> Signed-off-by: Dave Sugar <dsugar@tresys.com>
> ---
>   policy/modules/system/authlogin.te | 5 +++++
>   1 file changed, 5 insertions(+)
> 
> diff --git a/policy/modules/system/authlogin.te b/policy/modules/system/authlogin.te
> index 2b7586a2..d0c71285 100644
> --- a/policy/modules/system/authlogin.te
> +++ b/policy/modules/system/authlogin.te
> @@ -144,6 +144,11 @@ ifdef(`distro_ubuntu',`
>   	')
>   ')
>   
> +ifdef(`init_systemd',`
> +	# for journald /dev/log
> +	kernel_dgram_send(chkpwd_t)
> +')
> +
>   optional_policy(`
>   	# apache leaks file descriptors
>   	apache_dontaudit_rw_tcp_sockets(chkpwd_t)

Merged.

-- 
Chris PeBenito

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

* Re: [PATCH 1/1] Resolve denial about logging to journal from dbus
  2019-03-21 18:29 ` [PATCH 1/1] Resolve denial about logging to journal from dbus Sugar, David
@ 2019-03-24 18:39   ` Chris PeBenito
  0 siblings, 0 replies; 4+ messages in thread
From: Chris PeBenito @ 2019-03-24 18:39 UTC (permalink / raw)
  To: Sugar, David, selinux-refpolicy

On 3/21/19 2:29 PM, Sugar, David wrote:
> type=AVC msg=audit(1553013821.597:9897): avc:  denied  { sendto } for  pid=7377 comm="dbus-daemon" path="/dev/log" scontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 tcontext=system_u:system_r:kernel_t:s0 tclass=unix_dgram_socket permissive=1
> 
> Signed-off-by: Dave Sugar <dsugar@tresys.com>
> ---
>   policy/modules/services/dbus.te | 3 +++
>   1 file changed, 3 insertions(+)
> 
> diff --git a/policy/modules/services/dbus.te b/policy/modules/services/dbus.te
> index 24d12c64..fd7e2436 100644
> --- a/policy/modules/services/dbus.te
> +++ b/policy/modules/services/dbus.te
> @@ -162,6 +162,9 @@ ifdef(`init_systemd', `
>   	# for /run/systemd/dynamic-uid/
>   	init_list_pids(system_dbusd_t)
>   	init_read_runtime_symlinks(system_dbusd_t)
> +
> +	# for journald /dev/log
> +	kernel_dgram_send(system_dbusd_t)
>   ')
>   
>   optional_policy(`

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 --
2019-03-21 18:29 [PATCH 1/1] Resolve denial about logging to journal from chkpwd Sugar, David
2019-03-21 18:29 ` [PATCH 1/1] Resolve denial about logging to journal from dbus Sugar, David
2019-03-24 18:39   ` Chris PeBenito
2019-03-24 18:38 ` [PATCH 1/1] Resolve denial about logging to journal from chkpwd 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