mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 14:25:52 +00:00
And the related patch to fix globbing for af_unix abstract names
Abstract af_unix socket names can contain a null character, however the aare to pcre conversion explicitly disallows null characters because they are not valid characters for pathnames. Fix this so that they type of globbing is selectable. this is a partial fix for Bug: http://bugs.launchpad.net/bugs/1413410 Signed-off-by: John Johansen <john.johansen@canonical.com> Acked-by: Steve Beattie <steve@nxnw.org>
This commit is contained in:
@@ -243,7 +243,10 @@ char *processunquoted(const char *string, int len)
|
||||
* pass it through to be handled by the backend
|
||||
* pcre conversion
|
||||
*/
|
||||
if (strchr("*?[]{}^,\\", c) != NULL) {
|
||||
if (c == 0) {
|
||||
strncpy(s, string, pos - string);
|
||||
s += pos - string;
|
||||
} else if (strchr("*?[]{}^,\\", c) != NULL) {
|
||||
*s++ = '\\';
|
||||
*s++ = c;
|
||||
} else
|
||||
|
Reference in New Issue
Block a user