mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-06 09:21:00 +01:00
Merge branch 'cboltz-fix-get-profile' into 'master'
Fix unsetting filename in get_profile() See merge request apparmor/apparmor!140 Acked-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
commit
4011c421db
1 changed files with 1 additions and 1 deletions
|
@ -498,7 +498,7 @@ def get_profile(prof_name):
|
|||
if inactive_profile:
|
||||
uname = 'Inactive local profile for %s' % prof_name
|
||||
inactive_profile[prof_name][prof_name]['flags'] = 'complain'
|
||||
inactive_profile[prof_name][prof_name].pop('filename')
|
||||
inactive_profile[prof_name][prof_name]['filename'] = ''
|
||||
profile_hash[uname]['username'] = uname
|
||||
profile_hash[uname]['profile_type'] = 'INACTIVE_LOCAL'
|
||||
profile_hash[uname]['profile'] = serialize_profile(inactive_profile[prof_name], prof_name, {})
|
||||
|
|
Loading…
Add table
Reference in a new issue