/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/capability.h> #include <linux/socket.h> #define COMMON_FILE_SOCK_PERMS … #define COMMON_FILE_PERMS … #define COMMON_SOCK_PERMS … #define COMMON_IPC_PERMS … #define COMMON_CAP_PERMS … #define COMMON_CAP2_PERMS … #if CAP_LAST_CAP > CAP_CHECKPOINT_RESTORE #error New capability defined, please update COMMON_CAP2_PERMS. #endif /* * Note: The name for any socket class should be suffixed by "socket", * and doesn't contain more than one substr of "socket". */ const struct security_class_mapping secclass_map[] = …; #if PF_MAX > 46 #error New address family defined, please update secclass_map. #endif