SELinux-Refpolicy Archive on lore.kernel.org
 help / Atom feed
* [PATCH 1/3] Allow clamd_t to read /proc/sys/crypt/fips_enabled
@ 2018-11-02  0:38 David Sugar
  2018-11-10  0:07 ` Chris PeBenito
  0 siblings, 1 reply; 2+ messages in thread
From: David Sugar @ 2018-11-02  0:38 UTC (permalink / raw)
  To: selinux-refpolicy


To fix the following denials:
type=AVC msg=audit(1540821927.216:215): avc:  denied  { search } for
pid=1726 comm="clamd" name="crypto" dev="proc" ino=68
scontext=system_u:system_r:clamd_t:s0
tcontext=system_u:object_r:sysctl_crypto_t:s0 tclass=dir
type=AVC msg=audit(1540821927.216:215): avc:  denied  { read } for
pid=1726 comm="clamd" name="fips_enabled" dev="proc" ino=69
scontext=system_u:system_r:clamd_t:s0
tcontext=system_u:object_r:sysctl_crypto_t:s0 tclass=file
type=AVC msg=audit(1540821927.216:215): avc:  denied  { open } for
pid=1726 comm="clamd" path="/proc/sys/crypto/fips_enabled" dev="proc"
ino=69 scontext=system_u:system_r:clamd_t:s0
tcontext=system_u:object_r:sysctl_crypto_t:s0 tclass=file
type=AVC msg=audit(1540821927.216:216): avc:  denied  { getattr } for
pid=1726 comm="clamd" path="/proc/sys/crypto/fips_enabled" dev="proc"
ino=69 scontext=system_u:system_r:clamd_t:s0
tcontext=system_u:object_r:sysctl_crypto_t:s0 tclass=file

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

diff --git a/policy/modules/services/clamav.te b/policy/modules/services/clamav.te
index 5db29776..a2f30133 100644
--- a/policy/modules/services/clamav.te
+++ b/policy/modules/services/clamav.te
@@ -104,6 +104,7 @@ manage_sock_files_pattern(clamd_t, clamd_var_run_t, clamd_var_run_t)
 files_pid_filetrans(clamd_t, clamd_var_run_t, { dir file sock_file })
 
 kernel_dontaudit_list_proc(clamd_t)
+kernel_read_crypto_sysctls(clamd_t)
 kernel_read_sysctl(clamd_t)
 kernel_read_kernel_sysctls(clamd_t)
 kernel_read_system_state(clamd_t)
-- 
2.14.4


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

* Re: [PATCH 1/3] Allow clamd_t to read /proc/sys/crypt/fips_enabled
  2018-11-02  0:38 [PATCH 1/3] Allow clamd_t to read /proc/sys/crypt/fips_enabled David Sugar
@ 2018-11-10  0:07 ` Chris PeBenito
  0 siblings, 0 replies; 2+ messages in thread
From: Chris PeBenito @ 2018-11-10  0:07 UTC (permalink / raw)
  To: David Sugar, selinux-refpolicy

On 11/01/2018 08:38 PM, David Sugar wrote:
> 
> To fix the following denials:
> type=AVC msg=audit(1540821927.216:215): avc:  denied  { search } for
> pid=1726 comm="clamd" name="crypto" dev="proc" ino=68
> scontext=system_u:system_r:clamd_t:s0
> tcontext=system_u:object_r:sysctl_crypto_t:s0 tclass=dir
> type=AVC msg=audit(1540821927.216:215): avc:  denied  { read } for
> pid=1726 comm="clamd" name="fips_enabled" dev="proc" ino=69
> scontext=system_u:system_r:clamd_t:s0
> tcontext=system_u:object_r:sysctl_crypto_t:s0 tclass=file
> type=AVC msg=audit(1540821927.216:215): avc:  denied  { open } for
> pid=1726 comm="clamd" path="/proc/sys/crypto/fips_enabled" dev="proc"
> ino=69 scontext=system_u:system_r:clamd_t:s0
> tcontext=system_u:object_r:sysctl_crypto_t:s0 tclass=file
> type=AVC msg=audit(1540821927.216:216): avc:  denied  { getattr } for
> pid=1726 comm="clamd" path="/proc/sys/crypto/fips_enabled" dev="proc"
> ino=69 scontext=system_u:system_r:clamd_t:s0
> tcontext=system_u:object_r:sysctl_crypto_t:s0 tclass=file
> 
> Signed-off-by: Dave Sugar <dsugar@tresys.com>
> ---
>   policy/modules/services/clamav.te | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/policy/modules/services/clamav.te b/policy/modules/services/clamav.te
> index 5db29776..a2f30133 100644
> --- a/policy/modules/services/clamav.te
> +++ b/policy/modules/services/clamav.te
> @@ -104,6 +104,7 @@ manage_sock_files_pattern(clamd_t, clamd_var_run_t, clamd_var_run_t)
>   files_pid_filetrans(clamd_t, clamd_var_run_t, { dir file sock_file })
>   
>   kernel_dontaudit_list_proc(clamd_t)
> +kernel_read_crypto_sysctls(clamd_t)
>   kernel_read_sysctl(clamd_t)
>   kernel_read_kernel_sysctls(clamd_t)
>   kernel_read_system_state(clamd_t)

Merged.

-- 
Chris PeBenito

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

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-02  0:38 [PATCH 1/3] Allow clamd_t to read /proc/sys/crypt/fips_enabled David Sugar
2018-11-10  0:07 ` 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