Re: [PATCH 2/8] getty: allow watching file /run/agetty.reload

Chris PeBenito <[email protected]>
Newsgroups org.kernel.vger.selinux-refpolicy
Message-ID <[email protected]>
On 11/16/20 10:46 PM, Jason Zaman wrote:
> From: Jason Zaman <[email protected]>
> 
> avc:  denied  { watch } for  pid=2485 comm="agetty" path="/run/agetty.reload" dev="tmpfs" ino=22050 scontext=system_u:system_r:getty_t:s0 tcontext=system_u:object_r:getty_runtime_t:s0 tclass=file permissive=0
> 
> Signed-off-by: Jason Zaman <[email protected]>
> Signed-off-by: Jason Zaman <[email protected]>
> ---
>   policy/modules/system/getty.te | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/policy/modules/system/getty.te b/policy/modules/system/getty.te
> index ce9e4dedb..f9514c771 100644
> --- a/policy/modules/system/getty.te
> +++ b/policy/modules/system/getty.te
> @@ -47,6 +47,7 @@ allow getty_t getty_log_t:file { append_file_perms create_file_perms setattr_fil
>   logging_log_filetrans(getty_t, getty_log_t, file)
>   
>   allow getty_t getty_runtime_t:dir watch;
> +allow getty_t getty_runtime_t:file watch;
>   manage_files_pattern(getty_t, getty_runtime_t, getty_runtime_t)
>   files_runtime_filetrans(getty_t, getty_runtime_t, file)

Merged.

-- 
Chris PeBenito
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.