apparmorfs.c (e844fe9b51c984472ea98be3b2d1201ba9ee3213) | apparmorfs.c (33fc95d8293cfca352ac875668857293e22d7d51) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * AppArmor security module 4 * 5 * This file contains AppArmor /sys/kernel/security/apparmor interface functions 6 * 7 * Copyright (C) 1998-2008 Novell/SUSE 8 * Copyright 2009-2010 Canonical Ltd. --- 599 unchanged lines hidden (view full) --- 608 .release = ns_revision_release, 609}; 610 611static void profile_query_cb(struct aa_profile *profile, struct aa_perms *perms, 612 const char *match_str, size_t match_len) 613{ 614 struct aa_perms tmp = { }; 615 struct aa_dfa *dfa; | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * AppArmor security module 4 * 5 * This file contains AppArmor /sys/kernel/security/apparmor interface functions 6 * 7 * Copyright (C) 1998-2008 Novell/SUSE 8 * Copyright 2009-2010 Canonical Ltd. --- 599 unchanged lines hidden (view full) --- 608 .release = ns_revision_release, 609}; 610 611static void profile_query_cb(struct aa_profile *profile, struct aa_perms *perms, 612 const char *match_str, size_t match_len) 613{ 614 struct aa_perms tmp = { }; 615 struct aa_dfa *dfa; |
616 unsigned int state = 0; | 616 aa_state_t state = DFA_NOMATCH; |
617 618 if (profile_unconfined(profile)) 619 return; 620 if (profile->file.dfa && *match_str == AA_CLASS_FILE) { 621 dfa = profile->file.dfa; 622 state = aa_dfa_match_len(dfa, 623 profile->file.start[AA_CLASS_FILE], 624 match_str + 1, match_len - 1); --- 2063 unchanged lines hidden --- | 617 618 if (profile_unconfined(profile)) 619 return; 620 if (profile->file.dfa && *match_str == AA_CLASS_FILE) { 621 dfa = profile->file.dfa; 622 state = aa_dfa_match_len(dfa, 623 profile->file.start[AA_CLASS_FILE], 624 match_str + 1, match_len - 1); --- 2063 unchanged lines hidden --- |