mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-29 13:28:19 +00:00
Merge profiles/samba*: allow /etc/gnutls/config & @{HOMEDIRS}
# abstractions/samba: allow /etc/gnutls/config Various samba components want to read it. Without it, shares cannot be accessed. apparmor="DENIED" operation="open" class="file" profile="nmbd" name="/etc/gnutls/config" pid=23509 comm="nmbd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 apparmor="DENIED" operation="open" class="file" profile="smbd" name="/etc/gnutls/config" pid=23508 comm="smbd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 apparmor="DENIED" operation="open" class="file" profile="samba-rpcd" name="/etc/gnutls/config" pid=24037 comm="rpcd_fsrvp" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 apparmor="DENIED" operation="open" class="file" profile="samba-rpcd" name="/etc/gnutls/config" pid=24036 comm="rpcd_epmapper" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 apparmor="DENIED" operation="open" class="file" profile="samba-rpcd" name="/etc/gnutls/config" pid=24038 comm="rpcd_lsad" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 apparmor="DENIED" operation="open" class="file" profile="samba-rpcd" name="/etc/gnutls/config" pid=24041 comm="rpcd_winreg" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 apparmor="DENIED" operation="open" class="file" profile="samba-rpcd" name="/etc/gnutls/config" pid=24039 comm="rpcd_mdssvc" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 apparmor="DENIED" operation="open" class="file" profile="samba-rpcd-spoolss" name="/etc/gnutls/config" pid=24040 comm="rpcd_spoolss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 apparmor="DENIED" operation="open" class="file" profile="samba-rpcd-classic" name="/etc/gnutls/config" pid=24035 comm="rpcd_classic" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 # profiles/apparmor.d/samba-rpcd-classic: allow @{HOMEDIRS} Give access to @{HOMEDIRS}, just like in usr.sbin.smbd, so that usershares in /home/ can be accessed. apparmor="DENIED" operation="open" class="file" profile="samba-rpcd-classic" name="/home/user/path/to/usershare/" pid=4781 comm="rpcd_classic" requested_mask="r" denied_mask="r" fsuid=0 ouid=1000 Fixes: https://gitlab.com/apparmor/apparmor/-/issues/379 MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/1200 Approved-by: John Johansen <john@jjmx.net> Merged-by: John Johansen <john@jjmx.net> (cherry picked from commit 5998a0021a4f7527fe0b64771e5b9efe71267d8e) Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
parent
ff6489bfdf
commit
e5758891e6
@ -12,6 +12,7 @@
|
|||||||
abi <abi/3.0>,
|
abi <abi/3.0>,
|
||||||
|
|
||||||
/etc/samba/* r,
|
/etc/samba/* r,
|
||||||
|
/etc/gnutls/config r,
|
||||||
/usr/lib*/ldb/*.so mr,
|
/usr/lib*/ldb/*.so mr,
|
||||||
/usr/lib*/ldb2/*.so mr,
|
/usr/lib*/ldb2/*.so mr,
|
||||||
/usr/lib*/ldb2/modules/ldb/*.so mr,
|
/usr/lib*/ldb2/modules/ldb/*.so mr,
|
||||||
|
@ -19,6 +19,8 @@ profile samba-rpcd-classic /usr/lib*/samba/{,samba/}rpcd_classic {
|
|||||||
|
|
||||||
/usr/lib*/samba/{,samba/}rpcd_classic mr,
|
/usr/lib*/samba/{,samba/}rpcd_classic mr,
|
||||||
|
|
||||||
|
@{HOMEDIRS}/** lrwk,
|
||||||
|
|
||||||
# Site-specific additions and overrides. See local/README for details.
|
# Site-specific additions and overrides. See local/README for details.
|
||||||
include if exists <local/samba-rpcd-classic>
|
include if exists <local/samba-rpcd-classic>
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user