2
0
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:
Christian Boltz 2025-08-04 19:35:26 +02:00
parent 617d3021e8
commit 0de9678d4f
No known key found for this signature in database
GPG Key ID: C6A682EA63C82F1C

View File

@ -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 */
}
}