mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-03 15:55:46 +00:00
apply suggestions from @georgiag
This commit is contained in:
@@ -64,7 +64,7 @@ profile tnftp /usr/bin/tnftp {
|
|||||||
# here we are restricting execution to files in a limited set of
|
# here we are restricting execution to files in a limited set of
|
||||||
# directories, for which we also deny write access.
|
# directories, for which we also deny write access.
|
||||||
file Cx @{tnftp_rx}/* -> cmds,
|
file Cx @{tnftp_rx}/* -> cmds,
|
||||||
deny file w @{tnftp_rx}/*,
|
audit deny file w @{tnftp_rx}/*,
|
||||||
|
|
||||||
profile cmds {
|
profile cmds {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
@@ -77,7 +77,7 @@ profile tnftp /usr/bin/tnftp {
|
|||||||
deny network,
|
deny network,
|
||||||
|
|
||||||
file ixmr @{tnftp_rx}/*,
|
file ixmr @{tnftp_rx}/*,
|
||||||
deny file w @{tnftp_rx}/*,
|
audit deny file w @{tnftp_rx}/*,
|
||||||
|
|
||||||
# allow read on anything on @{HOME} not explicitly denied
|
# allow read on anything on @{HOME} not explicitly denied
|
||||||
owner file r @{HOME},
|
owner file r @{HOME},
|
||||||
|
Reference in New Issue
Block a user