mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 00:14:44 +01:00
profiles/apparmor.d/tinyproxy: clarify use of local override
Add comments to the profile to explain the use of the local override if the default configuration is changed. As suggested by @rlee287. Signed-off-by: Alex Murray <alex.murray@canonical.com>
This commit is contained in:
parent
6f961edaf9
commit
3ba204a635
1 changed files with 9 additions and 3 deletions
|
@ -18,7 +18,6 @@ profile tinyproxy /usr/bin/tinyproxy {
|
|||
include <abstractions/base>
|
||||
include <abstractions/nameservice>
|
||||
|
||||
file rw /run/tinyproxy/tinyproxy.pid,
|
||||
# to provide flexibility, when run as a root tinyproxy may need to run files
|
||||
# owned by other users and similarly when run as an unprivileged user allow
|
||||
# tinyproxy to bind to privileged ports
|
||||
|
@ -29,9 +28,16 @@ profile tinyproxy /usr/bin/tinyproxy {
|
|||
file mr /usr/bin/tinyproxy,
|
||||
|
||||
file r @{etc_ro}/tinyproxy/tinyproxy.conf,
|
||||
file rw /var/log/tinyproxy/tinyproxy.log,
|
||||
# tinyproxy.conf allows to configure the locations of various files that will
|
||||
# be written to by tinyproxy including ErrorFile, DefaultErrorFile, LogFile,
|
||||
# and StatFile as well as PidFile. This profile allows tinyproxy to write to
|
||||
# the default locations but if these are changed in the configuration file,
|
||||
# additional rules should be added to the /etc/apparmor.d/local/tinyproxy file
|
||||
# to allow this access
|
||||
file rw /run/tinyproxy/tinyproxy.pid, # PidFile
|
||||
file rw /var/log/tinyproxy/tinyproxy.log, # LogFile
|
||||
|
||||
file r /usr/share/tinyproxy/*,
|
||||
file r /usr/share/tinyproxy/*, #ErrorFile, DefaultErrorFile, StatFile etc
|
||||
|
||||
network inet stream,
|
||||
network inet6 stream,
|
||||
|
|
Loading…
Add table
Reference in a new issue