logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

selinux_netlink.h (1195B)


  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. /*
  3. * Netlink event notifications for SELinux.
  4. *
  5. * Author: James Morris <jmorris@redhat.com>
  6. *
  7. * Copyright (C) 2004 Red Hat, Inc., James Morris <jmorris@redhat.com>
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License version 2,
  11. * as published by the Free Software Foundation.
  12. */
  13. #ifndef _LINUX_SELINUX_NETLINK_H
  14. #define _LINUX_SELINUX_NETLINK_H
  15. #include <linux/types.h>
  16. /* Message types. */
  17. #define SELNL_MSG_BASE 0x10
  18. enum {
  19. SELNL_MSG_SETENFORCE = SELNL_MSG_BASE,
  20. SELNL_MSG_POLICYLOAD,
  21. SELNL_MSG_MAX
  22. };
  23. /* Multicast groups - backwards compatiblility for userspace */
  24. #define SELNL_GRP_NONE 0x00000000
  25. #define SELNL_GRP_AVC 0x00000001 /* AVC notifications */
  26. #define SELNL_GRP_ALL 0xffffffff
  27. enum selinux_nlgroups {
  28. SELNLGRP_NONE,
  29. #define SELNLGRP_NONE SELNLGRP_NONE
  30. SELNLGRP_AVC,
  31. #define SELNLGRP_AVC SELNLGRP_AVC
  32. __SELNLGRP_MAX
  33. };
  34. #define SELNLGRP_MAX (__SELNLGRP_MAX - 1)
  35. /* Message structures */
  36. struct selnl_msg_setenforce {
  37. __s32 val;
  38. };
  39. struct selnl_msg_policyload {
  40. __u32 seqno;
  41. };
  42. #endif /* _LINUX_SELINUX_NETLINK_H */