Added AppArmor profile

This commit is contained in:
István Váradi 2024-09-16 07:52:27 +02:00
parent a8f0874360
commit ea8cf72338
4 changed files with 18 additions and 0 deletions

12
debian/apparmor/nextcloud vendored Normal file
View File

@ -0,0 +1,12 @@
# This profile allows everything and only exists to give the
# application a name instead of having the label "unconfined"
abi <abi/4.0>,
include <tunables/global>
profile nextcloud /usr/bin/nextcloud flags=(unconfined) {
userns,
# Site-specific additions and overrides. See local/README for details.
include if exists <local/nextcloud>
}

1
debian/control vendored
View File

@ -7,6 +7,7 @@ Uploaders: Sandro Knauß <hefee@debian.org>,
Build-Depends: appstream,
cmake (>= 3.2~),
debhelper-compat (= 12),
dh-apparmor,
dh-python,
doxygen,
extra-cmake-modules (>= 1.2.0~),

View File

@ -2,3 +2,4 @@ usr/bin/nextcloud
usr/share/applications/com.nextcloud.desktopclient.nextcloud.desktop
usr/share/dbus-1/services/com.nextcloudgmbh.Nextcloud.service
usr/share/mime/packages/nextcloud.xml
debian/apparmor/nextcloud etc/apparmor.d

4
debian/rules vendored
View File

@ -47,3 +47,7 @@ override_dh_python3:
dh_python3 -i -p nautilus-owncloud usr/share/nautilus-python/extensions
dh_python3 -i -p nemo-owncloud usr/share/nemo-python/extensions
dh_python3 -i -p caja-owncloud usr/share/caja-python/extensions
override_dh_install:
dh_install
dh_apparmor --profile-name nextcloud