mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 00:48:10 +01:00
pick: ignore non profile files.
This commit is contained in:
parent
54472e187b
commit
dc820868a0
1 changed files with 1 additions and 2 deletions
3
pick
3
pick
|
@ -35,7 +35,7 @@ _reload_apparmor() {
|
||||||
|
|
||||||
pick() {
|
pick() {
|
||||||
for profile in "$@"; do
|
for profile in "$@"; do
|
||||||
path="$(find apparmor.d -iname "$profile" -type f)"
|
path="$(find apparmor.d -iname "$profile" -type f -not -path './apparmor.d/tunables/*' -not -path './apparmor.d/abstractions/*')"
|
||||||
if [[ -f "$path" ]]; then
|
if [[ -f "$path" ]]; then
|
||||||
install -Dm0644 "$path" "/etc/apparmor.d/$profile"
|
install -Dm0644 "$path" "/etc/apparmor.d/$profile"
|
||||||
[[ "$COMPLAIN" == 1 ]] && _set_complain "/etc/apparmor.d/$profile"
|
[[ "$COMPLAIN" == 1 ]] && _set_complain "/etc/apparmor.d/$profile"
|
||||||
|
@ -57,7 +57,6 @@ cmd_help() {
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
local opts err
|
local opts err
|
||||||
|
|
||||||
small_arg="ch"
|
small_arg="ch"
|
||||||
long_arg="complain,help"
|
long_arg="complain,help"
|
||||||
opts="$(getopt -o $small_arg -l $long_arg -n "$PROGRAM" -- "$@")"
|
opts="$(getopt -o $small_arg -l $long_arg -n "$PROGRAM" -- "$@")"
|
||||||
|
|
Loading…
Reference in a new issue