mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 07:54:17 +01:00
feat(profiles): remove the unused jdownloader profile.
This commit is contained in:
parent
5a722c42a2
commit
4521061f73
@ -1,102 +0,0 @@
|
|||||||
# apparmor.d - Full set of apparmor profiles
|
|
||||||
# Copyright (C) 2018-2021 Mikhail Morfikov
|
|
||||||
# SPDX-License-Identifier: GPL-2.0-only
|
|
||||||
|
|
||||||
abi <abi/3.0>,
|
|
||||||
|
|
||||||
include <tunables/global>
|
|
||||||
|
|
||||||
@{JD_INSTALLDIR} = @{HOME}/jd2
|
|
||||||
@{JD_SH_PATH} = @{user_download_dirs} @{HOME}/@{XDG_DESKTOP_DIR}
|
|
||||||
|
|
||||||
@{exec_path} = @{JD_SH_PATH}/JD2Setup_{x86,x64}.sh
|
|
||||||
profile jdownloader-install @{exec_path} {
|
|
||||||
include <abstractions/base>
|
|
||||||
include <abstractions/freedesktop.org>
|
|
||||||
include <abstractions/fonts>
|
|
||||||
include <abstractions/fontconfig-cache-read>
|
|
||||||
include <abstractions/nameservice-strict>
|
|
||||||
|
|
||||||
@{exec_path} r,
|
|
||||||
/{usr/,}bin/{,ba,da}sh rix,
|
|
||||||
|
|
||||||
/{usr/,}bin/basename rix,
|
|
||||||
/{usr/,}bin/dirname rix,
|
|
||||||
/{usr/,}bin/which{,.debianutils} rix,
|
|
||||||
/{usr/,}bin/expr rix,
|
|
||||||
/{usr/,}bin/mkdir rix,
|
|
||||||
/{usr/,}bin/rm rix,
|
|
||||||
/{usr/,}bin/tail rix,
|
|
||||||
/{usr/,}bin/gunzip rix,
|
|
||||||
/{usr/,}bin/gzip rix,
|
|
||||||
/{usr/,}bin/tar rix,
|
|
||||||
/{usr/,}bin/{m,g,}awk rix,
|
|
||||||
/{usr/,}bin/ls rix,
|
|
||||||
/{usr/,}bin/{,e}grep rix,
|
|
||||||
/{usr/,}bin/df rix,
|
|
||||||
/{usr/,}bin/nohup rix,
|
|
||||||
|
|
||||||
# Check for old JD installations
|
|
||||||
deny /opt/ r,
|
|
||||||
|
|
||||||
owner @{JD_SH_PATH}/JD2Setup_{x86,x64}.sh.[0-9]*.dir/ rw,
|
|
||||||
owner @{JD_SH_PATH}/JD2Setup_{x86,x64}.sh.[0-9]*.dir/** rwk,
|
|
||||||
owner @{JD_SH_PATH}/JD2Setup_{x86,x64}.sh.[0-9]*.dir/jre/bin/unpack200 rix,
|
|
||||||
owner @{JD_SH_PATH}/JD2Setup_{x86,x64}.sh.[0-9]*.dir/jre/bin/java rix,
|
|
||||||
owner @{JD_SH_PATH}/JD2Setup_{x86,x64}.sh.[0-9]*.dir/jre/lib/*/jli/libjli.so mrw,
|
|
||||||
owner @{JD_SH_PATH}/JD2Setup_{x86,x64}.sh.[0-9]*.dir/jre/lib/*/server/libjvm.so mrw,
|
|
||||||
owner @{JD_SH_PATH}/JD2Setup_{x86,x64}.sh.[0-9]*.dir/jre/lib/*/*.so mrw,
|
|
||||||
owner @{JD_SH_PATH}/install4jError[0-9]*.log rw,
|
|
||||||
|
|
||||||
owner @{HOME}/.oracle_jre_usage/@{hex}.timestamp rw,
|
|
||||||
owner @{HOME}/.java/.userPrefs/.user.lock.* rwk,
|
|
||||||
owner @{HOME}/.java/fonts/[0-9]*/fcinfo*.tmp rw,
|
|
||||||
owner @{HOME}/.java/fonts/[0-9]*/fcinfo-*.properties rw,
|
|
||||||
owner @{HOME}/.java/.userPrefs/com/install4j/installations/prefs.tmp rw,
|
|
||||||
owner @{HOME}/.java/.userPrefs/com/install4j/installations/prefs.xml rw,
|
|
||||||
|
|
||||||
owner @{HOME}/.install4j rw,
|
|
||||||
|
|
||||||
# While creating the desktop icon
|
|
||||||
owner @{user_share_dirs}/applications/i4j[0-9]*.tmp rw,
|
|
||||||
owner @{user_share_dirs}/applications/JDownloader*.desktop rw,
|
|
||||||
|
|
||||||
/tmp/ r,
|
|
||||||
owner /tmp/_jdinstall/ rw,
|
|
||||||
owner /tmp/JD2Setup_{x86,x64}.sh.[0-9]*.dir/ rw,
|
|
||||||
owner /tmp/JD2Setup_{x86,x64}.sh.[0-9]*.dir/sfx_archive.tar.gz rw,
|
|
||||||
owner /tmp/hsperfdata_*/ rw,
|
|
||||||
owner /tmp/hsperfdata_*/@{pid} rw,
|
|
||||||
owner /tmp/appwork[0-9]*[0-9] rw,
|
|
||||||
owner /tmp/i4j*.log rw,
|
|
||||||
owner /tmp/i4j*.sh rw,
|
|
||||||
owner /tmp/i4*.tmp rw,
|
|
||||||
owner /tmp/imageio[0-9]*.tmp rw,
|
|
||||||
owner /tmp/install4jError[0-9]*.log rw,
|
|
||||||
|
|
||||||
owner @{HOME}/.Xauthority r,
|
|
||||||
|
|
||||||
owner @{PROC}/@{pid}/fd/ r,
|
|
||||||
deny @{PROC}/@{pid}/net/ipv6_route r,
|
|
||||||
deny @{PROC}/@{pid}/net/if_inet6 r,
|
|
||||||
owner @{PROC}/@{pid}/mountinfo r,
|
|
||||||
owner @{PROC}/@{pid}/mounts r,
|
|
||||||
|
|
||||||
# What's this for?
|
|
||||||
deny owner @{HOME}/.mozilla/firefox/ r,
|
|
||||||
deny owner @{HOME}/.mozilla/firefox/*.*/prefs.js r,
|
|
||||||
|
|
||||||
# Needed when installing JD
|
|
||||||
/ r,
|
|
||||||
/home/ r,
|
|
||||||
owner @{HOME}/ r,
|
|
||||||
owner @{JD_INSTALLDIR}/ rw,
|
|
||||||
owner @{JD_INSTALLDIR}/** rw,
|
|
||||||
deny owner @{JD_INSTALLDIR}/jre/bin/java rx,
|
|
||||||
deny owner @{JD_INSTALLDIR}/jre/lib/*/jli/libjli.so m,
|
|
||||||
deny owner @{JD_INSTALLDIR}/jre/lib/*/server/libjvm.so m,
|
|
||||||
deny owner @{JD_INSTALLDIR}/jre/lib/*/*.so m,
|
|
||||||
deny owner @{JD_INSTALLDIR}/JDownloader2 rx,
|
|
||||||
|
|
||||||
include if exists <local/jdownloader-install>
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user