aboutsummaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorVit Mojzis <vmojzis@redhat.com>2021-05-18 12:23:15 +0200
committerZdenek Pytela <zpytela@redhat.com>2021-05-18 13:10:09 +0200
commit386542e6d50eeaa68aa91f821c0725ddd0ab9b2a (patch)
treeb4eb4c5a5e6ae9ddc7cfe39972806828b3dc7f9e /unix
parenta8357a530546412799801d5041a157def6588610 (diff)
downloadtigervnc-386542e6d50eeaa68aa91f821c0725ddd0ab9b2a.tar.gz
tigervnc-386542e6d50eeaa68aa91f821c0725ddd0ab9b2a.zip
selinux: Fix issues reported by SELint
Style guide [1] issues only. No impact on policy functionality. [1] - https://github.com/TresysTechnology/refpolicy/wiki/StyleGuide
Diffstat (limited to 'unix')
-rw-r--r--unix/vncserver/selinux/vncsession.te7
1 files changed, 3 insertions, 4 deletions
diff --git a/unix/vncserver/selinux/vncsession.te b/unix/vncserver/selinux/vncsession.te
index a773fed3..63ad8a85 100644
--- a/unix/vncserver/selinux/vncsession.te
+++ b/unix/vncserver/selinux/vncsession.te
@@ -17,7 +17,7 @@
# USA.
#
-policy_module(vncsession, 1.0.0);
+policy_module(vncsession, 1.0.0)
gen_require(`
attribute userdomain;
@@ -42,8 +42,8 @@ can_exec(vnc_session_t, vnc_session_exec_t)
userdom_spec_domtrans_all_users(vnc_session_t)
userdom_signal_all_users(vnc_session_t)
-allow vnc_session_t self:capability { kill chown dac_override dac_read_search fowner setgid setuid sys_resource };
-allow vnc_session_t self:process { getcap setsched setexec setrlimit };
+allow vnc_session_t self:capability { chown dac_override dac_read_search fowner kill setgid setuid sys_resource };
+allow vnc_session_t self:process { getcap setexec setrlimit setsched };
allow vnc_session_t self:fifo_file rw_fifo_file_perms;
manage_files_pattern(vnc_session_t, xdm_home_t, xdm_home_t)
@@ -65,4 +65,3 @@ logging_append_all_logs(vnc_session_t)
mcs_process_set_categories(vnc_session_t)
mcs_killall(vnc_session_t)
-