lib.h (97acb6a8fcc4e5c2cdc2693a35acdc5a7461aaa3) lib.h (33fc95d8293cfca352ac875668857293e22d7d51)
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * AppArmor security module
4 *
5 * This file contains AppArmor lib definitions
6 *
7 * 2017 Canonical Ltd.
8 */

--- 73 unchanged lines hidden (view full) ---

82 * aa_dfa_null_transition - step to next state after null character
83 * @dfa: the dfa to match against
84 * @start: the state of the dfa to start matching in
85 *
86 * aa_dfa_null_transition transitions to the next state after a null
87 * character which is not used in standard matching and is only
88 * used to separate pairs.
89 */
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * AppArmor security module
4 *
5 * This file contains AppArmor lib definitions
6 *
7 * 2017 Canonical Ltd.
8 */

--- 73 unchanged lines hidden (view full) ---

82 * aa_dfa_null_transition - step to next state after null character
83 * @dfa: the dfa to match against
84 * @start: the state of the dfa to start matching in
85 *
86 * aa_dfa_null_transition transitions to the next state after a null
87 * character which is not used in standard matching and is only
88 * used to separate pairs.
89 */
90static inline unsigned int aa_dfa_null_transition(struct aa_dfa *dfa,
91 unsigned int start)
90static inline aa_state_t aa_dfa_null_transition(struct aa_dfa *dfa,
91 aa_state_t start)
92{
93 /* the null transition only needs the string's null terminator byte */
94 return aa_dfa_next(dfa, start, 0);
95}
96
97static inline bool path_mediated_fs(struct dentry *dentry)
98{
99 return !(dentry->d_sb->s_flags & SB_NOUSER);

--- 199 unchanged lines hidden ---
92{
93 /* the null transition only needs the string's null terminator byte */
94 return aa_dfa_next(dfa, start, 0);
95}
96
97static inline bool path_mediated_fs(struct dentry *dentry)
98{
99 return !(dentry->d_sb->s_flags & SB_NOUSER);

--- 199 unchanged lines hidden ---