hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/security/apparmor/lib.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * AppArmor security module
34 *
....@@ -5,11 +6,6 @@
56 *
67 * Copyright (C) 1998-2008 Novell/SUSE
78 * Copyright 2009-2010 Canonical Ltd.
8
- *
9
- * This program is free software; you can redistribute it and/or
10
- * modify it under the terms of the GNU General Public License as
11
- * published by the Free Software Foundation, version 2 of the
12
- * License.
139 */
1410
1511 #include <linux/ctype.h>
....@@ -296,13 +292,13 @@
296292 switch (AUDIT_MODE(profile)) {
297293 case AUDIT_ALL:
298294 perms->audit = ALL_PERMS_MASK;
299
- /* fall through */
295
+ fallthrough;
300296 case AUDIT_NOQUIET:
301297 perms->quiet = 0;
302298 break;
303299 case AUDIT_QUIET:
304300 perms->audit = 0;
305
- /* fall through */
301
+ fallthrough;
306302 case AUDIT_QUIET_DENIED:
307303 perms->quiet = ALL_PERMS_MASK;
308304 break;