diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2023-08-15 18:34:45 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2023-08-18 13:18:45 +0200 |
commit | 0c42326204c1b8ece86512d9d5014d8603449430 (patch) | |
tree | 9774355400e0eaaae8c7a1afae7843a86d344e7d /contrib/selinux/pasta.fc | |
parent | 479a9e1b4d9b4e426754b44fb767d252ca144e0f (diff) | |
download | passt-0c42326204c1b8ece86512d9d5014d8603449430.tar passt-0c42326204c1b8ece86512d9d5014d8603449430.tar.gz passt-0c42326204c1b8ece86512d9d5014d8603449430.tar.bz2 passt-0c42326204c1b8ece86512d9d5014d8603449430.tar.lz passt-0c42326204c1b8ece86512d9d5014d8603449430.tar.xz passt-0c42326204c1b8ece86512d9d5014d8603449430.tar.zst passt-0c42326204c1b8ece86512d9d5014d8603449430.zip |
selinux: Use explicit paths for binaries in file context
There's no reason to use wildcards, and we don't want any
similarly-named binary (not that I'm aware of any) to risk being
associated to passt_exec_t and pasta_exec_t by accident.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: Richard W.M. Jones <rjones@redhat.com>
Diffstat (limited to 'contrib/selinux/pasta.fc')
-rw-r--r-- | contrib/selinux/pasta.fc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/selinux/pasta.fc b/contrib/selinux/pasta.fc index 2ffb41a..41ee46d 100644 --- a/contrib/selinux/pasta.fc +++ b/contrib/selinux/pasta.fc @@ -8,6 +8,7 @@ # Copyright (c) 2022 Red Hat GmbH # Author: Stefano Brivio <sbrivio@redhat.com> -/usr/bin/pasta(\.*)? system_u:object_r:pasta_exec_t:s0 +/usr/bin/pasta system_u:object_r:pasta_exec_t:s0 +/usr/bin/pasta.avx2 system_u:object_r:pasta_exec_t:s0 /tmp/pasta\.pcap system_u:object_r:pasta_log_t:s0 /var/run/pasta\.pid system_u:object_r:pasta_pid_t:s0 |