mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 06:16:03 +00:00
parser: convert valid_prefix and add_prefix to use const
The prefix can passed as a parameter can be const so it should be. Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
@@ -50,7 +50,7 @@ public:
|
||||
free(interface);
|
||||
free(member);
|
||||
};
|
||||
virtual bool valid_prefix(prefixes &p, const char *&error) {
|
||||
virtual bool valid_prefix(const prefixes &p, const char *&error) {
|
||||
if (p.owner) {
|
||||
error = "owner prefix not allowed on dbus rules";
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user