mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
Fix: parser: incorrect output of child profile names
BugLink: http://bugs.launchpad.net/bugs/1551950 The apparmor_parser is incorrectly outputting the names of child profiles and hats, by adding a : between the parent and the child profile name Eg. /usr/sbin/httpd{,2}-prefork /usr/sbin/httpd{,2}-prefork://DEFAULT_URI /usr/sbin/httpd{,2}-prefork://HANDLING_UNTRUSTED_INPUT instead of what it should be /usr/sbin/httpd{,2}-prefork /usr/sbin/httpd{,2}-prefork//DEFAULT_URI /usr/sbin/httpd{,2}-prefork//HANDLING_UNTRUSTED_INPUT Signed-off-by: John Johansen <john.johansen@canonical.com> Acked-by: Seth Arnold <seth.arnold@canonical.com>
This commit is contained in:
parent
c9f254610b
commit
22738991ac
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ public:
|
|||
std::string fqname(void)
|
||||
{
|
||||
if (parent)
|
||||
return parent->fqname() + "://" + name;
|
||||
return parent->fqname() + "//" + name;
|
||||
else if (!ns)
|
||||
return hname();
|
||||
return ":" + std::string(ns) + "://" + hname();
|
||||
|
|
Loading…
Add table
Reference in a new issue