mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
disable named transition conversion to cx. Needs to be reworked
This commit is contained in:
parent
11f925abba
commit
ee03760c1d
1 changed files with 3 additions and 0 deletions
|
@ -102,6 +102,8 @@ static int add_named_transition(struct codomain *cod, struct cod_entry *entry)
|
|||
if (!entry->namespace) {
|
||||
char *sub = strstr(entry->nt_name, "//");
|
||||
/* does the subprofile name match the rule */
|
||||
#if 0
|
||||
/* disable cix checking as cod->name is not available. Need to rework */
|
||||
if (sub && strncmp(cod->name, sub, sub - entry->nt_name) &&
|
||||
strcmp(sub + 2, entry->name) == 0) {
|
||||
free(entry->nt_name);
|
||||
|
@ -127,6 +129,7 @@ static int add_named_transition(struct codomain *cod, struct cod_entry *entry)
|
|||
free(entry->nt_name);
|
||||
entry->nt_name = name;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
if (entry->namespace) {
|
||||
name = malloc(strlen(entry->namespace) + strlen(entry->nt_name) + 3);
|
||||
|
|
Loading…
Add table
Reference in a new issue