hc
2024-10-09 05e59e5fb0064c97a1c10921ecd549f2d4a58565
kernel/security/apparmor/include/net.h
....@@ -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-2017 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 #ifndef __AA_NET_H
....@@ -83,6 +79,13 @@
8379 __e; \
8480 })
8581
82
+struct aa_secmark {
83
+ u8 audit;
84
+ u8 deny;
85
+ u32 secid;
86
+ char *label;
87
+};
88
+
8689 extern struct aa_sfs_entry aa_sfs_entry_network[];
8790
8891 void audit_net_cb(struct audit_buffer *ab, void *va);
....@@ -103,4 +106,7 @@
103106 int aa_sock_file_perm(struct aa_label *label, const char *op, u32 request,
104107 struct socket *sock);
105108
109
+int apparmor_secmark_check(struct aa_label *label, char *op, u32 request,
110
+ u32 secid, struct sock *sk);
111
+
106112 #endif /* __AA_NET_H */