aa-mergeprof crash with global include if merging profile that doesn't exist in target directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AppArmor |
New
|
Undecided
|
Unassigned |
Bug Description
# head `find -type f`
==> ./old/bin.false <==
#include <tunables/global>
/bin/false {
}
==> ./old/tunables/
==> ./new/bin.true <==
/bin/true {
/bin/true r,
}
==> ./new/tunables/
# cd new
# aa-mergeprof -d . ../old/bin.false
Merging profile for /bin/false
File includes: Select the ones you wish to add
[1 - #include <tunables/global>]
[(A)llow] / (I)gnore / Abo(r)t / (F)inish <---- press "a"
Adding #include <tunables/global> to the file.
Traceback (most recent call last):
File "/home/
main()
File "/home/
act([user_file, base_file, None], 2, profile_name)
File "/home/
program = programs[0]
IndexError: list index out of range
tags: | added: aa-tools |