blob: d3c4e149cf1ba51169fb74c4a443c35f648f8a43 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Ben Cheng655a7c02013-10-16 16:09:24 -07007#ifndef _LINUX_SELINUX_NETLINK_H
8#define _LINUX_SELINUX_NETLINK_H
9#include <linux/types.h>
10#define SELNL_MSG_BASE 0x10
Ben Cheng655a7c02013-10-16 16:09:24 -070011enum {
Tao Baod7db5942015-01-28 10:07:51 -080012 SELNL_MSG_SETENFORCE = SELNL_MSG_BASE,
13 SELNL_MSG_POLICYLOAD,
14 SELNL_MSG_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -070015};
16#define SELNL_GRP_NONE 0x00000000
17#define SELNL_GRP_AVC 0x00000001
18#define SELNL_GRP_ALL 0xffffffff
Ben Cheng655a7c02013-10-16 16:09:24 -070019enum selinux_nlgroups {
Tao Baod7db5942015-01-28 10:07:51 -080020 SELNLGRP_NONE,
Ben Cheng655a7c02013-10-16 16:09:24 -070021#define SELNLGRP_NONE SELNLGRP_NONE
Tao Baod7db5942015-01-28 10:07:51 -080022 SELNLGRP_AVC,
Ben Cheng655a7c02013-10-16 16:09:24 -070023#define SELNLGRP_AVC SELNLGRP_AVC
Tao Baod7db5942015-01-28 10:07:51 -080024 __SELNLGRP_MAX
Ben Cheng655a7c02013-10-16 16:09:24 -070025};
26#define SELNLGRP_MAX (__SELNLGRP_MAX - 1)
Ben Cheng655a7c02013-10-16 16:09:24 -070027struct selnl_msg_setenforce {
Tao Baod7db5942015-01-28 10:07:51 -080028 __s32 val;
Ben Cheng655a7c02013-10-16 16:09:24 -070029};
30struct selnl_msg_policyload {
Tao Baod7db5942015-01-28 10:07:51 -080031 __u32 seqno;
Ben Cheng655a7c02013-10-16 16:09:24 -070032};
Nick Kralevicha67e4de2013-01-14 11:28:26 -080033#endif