hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/security/selinux/include/netlabel.h
....@@ -1,26 +1,12 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * SELinux interface to the NetLabel subsystem
34 *
45 * Author: Paul Moore <paul@paul-moore.com>
5
- *
66 */
77
88 /*
99 * (c) Copyright Hewlett-Packard Development Company, L.P., 2006
10
- *
11
- * This program is free software; you can redistribute it and/or modify
12
- * it under the terms of the GNU General Public License as published by
13
- * the Free Software Foundation; either version 2 of the License, or
14
- * (at your option) any later version.
15
- *
16
- * This program is distributed in the hope that it will be useful,
17
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
19
- * the GNU General Public License for more details.
20
- *
21
- * You should have received a copy of the GNU General Public License
22
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
23
- *
2410 */
2511
2612 #ifndef _SELINUX_NETLABEL_H_
....@@ -108,12 +94,6 @@
10894 static inline int selinux_netlbl_skbuff_setsid(struct sk_buff *skb,
10995 u16 family,
11096 u32 sid)
111
-{
112
- return 0;
113
-}
114
-
115
-static inline int selinux_netlbl_conn_setsid(struct sock *sk,
116
- struct sockaddr *addr)
11797 {
11898 return 0;
11999 }