View Issue Details

IDProjectCategoryView StatusLast Update
0018288CentOS-7selinux-policypublic2021-08-25 08:08
Reportersmilebest Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
OS Version7 
Summary0018288: SELinux is preventing /usr/libexec/snapd/snap-update-ns from 'unlink' accesses on the file snap.notepadqq.fstab.
DescriptionDescription of problem:
SELinux is preventing /usr/libexec/snapd/snap-update-ns from 'unlink' accesses on the file snap.notepadqq.fstab.

***** Plugin catchall (100. confidence) suggests **************************

If you believe that snap-update-ns should be allowed unlink access on the snap.notepadqq.fstab file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
allow this access for now by executing:
# ausearch -c 'snap-update-ns' --raw | audit2allow -M my-snapupdatens
# semodule -i my-snapupdatens.pp

Additional Information:
Source Context system_u:system_r:snappy_mount_t:s0
Target Context system_u:object_r:var_run_t:s0
Target Objects snap.notepadqq.fstab [ file ]
Source snap-update-ns
Source Path /usr/libexec/snapd/snap-update-ns
Port <Unknown>
Host (removed)
Source RPM Packages snap-confine-2.51-1.el7.x86_64
Target RPM Packages
Policy RPM selinux-policy-3.13.1-268.el7_9.2.noarch
Selinux Enabled True
Policy Type targeted
Enforcing Mode Enforcing
Host Name (removed)
Platform Linux (removed) 3.10.0-1160.36.2.el7.x86_64 #1 SMP
                              Wed Jul 21 11:57:15 UTC 2021 x86_64 x86_64
Alert Count 1
First Seen 2021-08-25 03:01:42 +06
Last Seen 2021-08-25 03:01:42 +06
Local ID 02336fb2-0459-4d32-8889-3fdbc0d99fa8

Raw Audit Messages
type=AVC msg=audit(1629838902.446:110684): avc: denied { unlink } for pid=120124 comm="snap-update-ns" name="snap.notepadqq.fstab" dev="tmpfs" ino=13481357 scontext=system_u:system_r:snappy_mount_t:s0 tcontext=system_u:object_r:var_run_t:s0 tclass=file permissive=1

type=SYSCALL msg=audit(1629838902.446:110684): arch=x86_64 syscall=renameat success=yes exit=0 a0=ffffffffffffff9c a1=c000186100 a2=ffffffffffffff9c a3=c000188120 items=0 ppid=127995 pid=120124 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=snap-update-ns exe=/usr/libexec/snapd/snap-update-ns subj=system_u:system_r:snappy_mount_t:s0 key=(null)

Hash: snap-update-ns,snappy_mount_t,var_run_t,file,unlink

Version-Release number of selected component:
Additional Informationreporter: libreport-
hashmarkername: setroubleshoot
kernel: 3.10.0-1160.36.2.el7.x86_64
reproducible: Not sure how to reproduce the problem
type: libreport
TagsNo tags attached.


There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2021-08-25 08:08 smilebest New Issue