aboutgitcodebugslistschat
path: root/contrib/selinux/pasta.te
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2024-09-06 15:19:20 +0200
committerStefano Brivio <sbrivio@redhat.com>2024-09-06 15:34:06 +0200
commit116bc8266d97d3a3679f9f1c5dc306c834562b48 (patch)
tree523da6d769f3638595cdc6da9efef6dbdaac4e6a /contrib/selinux/pasta.te
parenta33ecafbd921a681ef65b66624625a1beac43c50 (diff)
downloadpasst-116bc8266d97d3a3679f9f1c5dc306c834562b48.tar
passt-116bc8266d97d3a3679f9f1c5dc306c834562b48.tar.gz
passt-116bc8266d97d3a3679f9f1c5dc306c834562b48.tar.bz2
passt-116bc8266d97d3a3679f9f1c5dc306c834562b48.tar.lz
passt-116bc8266d97d3a3679f9f1c5dc306c834562b48.tar.xz
passt-116bc8266d97d3a3679f9f1c5dc306c834562b48.tar.zst
passt-116bc8266d97d3a3679f9f1c5dc306c834562b48.zip
selinux: Allow read access to /proc/sys/net/ipv4/ip_local_port_range
Since commit eedc81b6ef55 ("fwd, conf: Probe host's ephemeral ports"), we might need to read from /proc/sys/net/ipv4/ip_local_port_range in both passt and pasta. While pasta was already allowed to open and write /proc/sys/net entries, read access was missing in SELinux's type enforcement: add that. In passt, instead, this is the first time we need to access an entry there: add everything we need. Fixes: eedc81b6ef55 ("fwd, conf: Probe host's ephemeral ports") Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'contrib/selinux/pasta.te')
-rw-r--r--contrib/selinux/pasta.te2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/selinux/pasta.te b/contrib/selinux/pasta.te
index 4e36c3f..310383c 100644
--- a/contrib/selinux/pasta.te
+++ b/contrib/selinux/pasta.te
@@ -196,7 +196,7 @@ allow pasta_t ifconfig_var_run_t:dir { read search watch };
allow pasta_t self:tun_socket create;
allow pasta_t tun_tap_device_t:chr_file { ioctl open read write };
allow pasta_t sysctl_net_t:dir search;
-allow pasta_t sysctl_net_t:file { open write };
+allow pasta_t sysctl_net_t:file { open read write };
allow pasta_t kernel_t:system module_request;
allow pasta_t nsfs_t:file read;