mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 01:57:43 +00:00
mount.cc: remove nop code from mnt_rule::post_parse_profile(Profile &prof)
... as discussed in https://gitlab.com/apparmor/apparmor/-/merge_requests/1759#note_2665952086
This commit is contained in:
parent
617d3021e8
commit
0de9678d4f
@ -1163,17 +1163,7 @@ fail:
|
||||
void mnt_rule::post_parse_profile(Profile &prof)
|
||||
{
|
||||
if (trans) {
|
||||
perm32_t perms = 0;
|
||||
int n = add_entry_to_x_table(&prof, trans);
|
||||
if (!n) {
|
||||
PERROR("Profile %s has too many specified profile transitions.\n", prof.name);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
perms = ((perms & ~AA_ALL_EXEC_MODIFIERS) |
|
||||
(perms & AA_ALL_EXEC_MODIFIERS));
|
||||
|
||||
trans = NULL;
|
||||
/* TODO: pivot_root profile transition */
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user