mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 22:05:27 +00:00
parser: add support for attach_disconnected.path
Add support for specifying the path prefix used when attach disconnected is specified. The kernel supports prepending a different value than / when a path is disconnected. Expose through a profile flag. Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
@@ -420,6 +420,12 @@ void sd_serialize_profile(std::ostringstream &buf, Profile *profile,
|
||||
}
|
||||
}
|
||||
|
||||
/* added in 4.13, unfortunately there is no features flag */
|
||||
if (profile->flags.disconnected_path) {
|
||||
sd_write_string(buf, profile->flags.disconnected_path,
|
||||
"disconnected");
|
||||
}
|
||||
|
||||
sd_write_struct(buf, "flags");
|
||||
/* used to be flags.debug, but that's no longer supported */
|
||||
sd_write_uint32(buf, profile->flags.flags);
|
||||
|
Reference in New Issue
Block a user