Latest flask definitions for libselinux.
Daniel J Walsh wrote:
include/selinux/flask.h +12 -12
@@ -35,18 +35,18 @@#define SECCLASS_SHM 28#define SECCLASS_IPC 29#define SECCLASS_PASSWD 30 -#define SECCLASS_DRAWABLE 31 -#define SECCLASS_WINDOW 32 -#define SECCLASS_GC 33 -#define SECCLASS_FONT 34 -#define SECCLASS_COLORMAP 35 -#define SECCLASS_PROPERTY 36 -#define SECCLASS_CURSOR 37 -#define SECCLASS_XCLIENT 38 -#define SECCLASS_XINPUT 39 -#define SECCLASS_XSERVER 40 -#define SECCLASS_XEXTENSION 41 -#define SECCLASS_PAX 42 +#define SECCLASS_X_DRAWABLE 31 +#define SECCLASS_X_SCREEN 32 +#define SECCLASS_X_GC 33 +#define SECCLASS_X_FONT 34 +#define SECCLASS_X_COLORMAP 35 +#define SECCLASS_X_PROPERTY 36 +#define SECCLASS_X_SELECTION 37 +#define SECCLASS_X_CURSOR 38 +#define SECCLASS_X_CLIENT 39 +#define SECCLASS_X_DEVICE 40 +#define SECCLASS_X_SERVER 41 +#define SECCLASS_X_EXTENSION 42#define SECCLASS_NETLINK_ROUTE_SOCKET 43#define SECCLASS_NETLINK_FIREWALL_SOCKET 44#define SECCLASS_NETLINK_TCPDIAG_SOCKET 45
These are renumbered, why are you doing that?
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 39 lines · Joshua Brindle
Daniel J Walsh wrote:
diff --exclude-from=exclude -N -u -r
nsalibselinux/include/selinux/flask.hlibselinux-2.0.71/include/selinux/flask.hinclude/selinux/flask.h +12
-12@@ -35,18 +35,18 @@#define SECCLASS_SHM 28#define SECCLASS_IPC 29#define SECCLASS_PASSWD 30 -#define SECCLASS_DRAWABLE 31 -#define SECCLASS_WINDOW 32 -#define SECCLASS_GC 33 -#define SECCLASS_FONT 34 -#define SECCLASS_COLORMAP 35 -#define SECCLASS_PROPERTY 36 -#define SECCLASS_CURSOR 37 -#define SECCLASS_XCLIENT 38 -#define SECCLASS_XINPUT 39 -#define SECCLASS_XSERVER 40 -#define SECCLASS_XEXTENSION 41 -#define SECCLASS_PAX 42 +#define SECCLASS_X_DRAWABLE 31 +#define SECCLASS_X_SCREEN 32 +#define SECCLASS_X_GC 33 +#define SECCLASS_X_FONT 34 +#define SECCLASS_X_COLORMAP 35 +#define SECCLASS_X_PROPERTY 36 +#define SECCLASS_X_SELECTION 37 +#define SECCLASS_X_CURSOR 38 +#define SECCLASS_X_CLIENT 39 +#define SECCLASS_X_DEVICE 40 +#define SECCLASS_X_SERVER 41 +#define SECCLASS_X_EXTENSION 42#define SECCLASS_NETLINK_ROUTE_SOCKET 43#define SECCLASS_NETLINK_FIREWALL_SOCKET 44#define SECCLASS_NETLINK_TCPDIAG_SOCKET 45
Quoted 1 line
These are renumbered, why are you doing that?
I did nothing other then take the policy in REFpolicy and run the make file on it.
My only change was to add netlink
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iEYEARECAAYFAkjX6qYACgkQrlYvE4MpobNLAACcCt7No3PTMRAFxzE8PGiiaZgJ Mn4AoNZ/mX1uTrC2aEXOLwdXPBC7o2Sp
=TVE7
-----END PGP SIGNATURE-----
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 43 lines · Daniel J Walsh
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Quoted 39 lines · Joshua Brindle
Daniel J Walsh wrote:
diff --exclude-from=exclude -N -u -r
nsalibselinux/include/selinux/flask.hlibselinux-2.0.71/include/selinux/flask.hinclude/selinux/flask.h +12
-12@@ -35,18 +35,18 @@#define SECCLASS_SHM 28#define SECCLASS_IPC 29#define SECCLASS_PASSWD 30 -#define SECCLASS_DRAWABLE 31 -#define SECCLASS_WINDOW 32 -#define SECCLASS_GC 33 -#define SECCLASS_FONT 34 -#define SECCLASS_COLORMAP 35 -#define SECCLASS_PROPERTY 36 -#define SECCLASS_CURSOR 37 -#define SECCLASS_XCLIENT 38 -#define SECCLASS_XINPUT 39 -#define SECCLASS_XSERVER 40 -#define SECCLASS_XEXTENSION 41 -#define SECCLASS_PAX 42 +#define SECCLASS_X_DRAWABLE 31 +#define SECCLASS_X_SCREEN 32 +#define SECCLASS_X_GC 33 +#define SECCLASS_X_FONT 34 +#define SECCLASS_X_COLORMAP 35 +#define SECCLASS_X_PROPERTY 36 +#define SECCLASS_X_SELECTION 37 +#define SECCLASS_X_CURSOR 38 +#define SECCLASS_X_CLIENT 39 +#define SECCLASS_X_DEVICE 40 +#define SECCLASS_X_SERVER 41 +#define SECCLASS_X_EXTENSION 42#define SECCLASS_NETLINK_ROUTE_SOCKET 43#define SECCLASS_NETLINK_FIREWALL_SOCKET 44#define SECCLASS_NETLINK_TCPDIAG_SOCKET 45
Quoted 5 lines
Quoted 1 line
These are renumbered, why are you doing that?
I did nothing other then take the policy in REFpolicy and run the make file on it.
My only change was to add netlink
It looks like some classes got reclaimed/reordered in the policy but the headers weren't updated. We need to be careful about this, and I hope the kernel headers also got updated.
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 48 lines · Joshua Brindle
Quoted 47 lines · Daniel J Walsh
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Quoted 39 lines · Joshua Brindle
Daniel J Walsh wrote:
diff --exclude-from=exclude -N -u -r
nsalibselinux/include/selinux/flask.hlibselinux-2.0.71/include/selinux/flask.hinclude/selinux/flask.h +12
-12@@ -35,18 +35,18 @@#define SECCLASS_SHM 28#define SECCLASS_IPC 29#define SECCLASS_PASSWD 30 -#define SECCLASS_DRAWABLE 31 -#define SECCLASS_WINDOW 32 -#define SECCLASS_GC 33 -#define SECCLASS_FONT 34 -#define SECCLASS_COLORMAP 35 -#define SECCLASS_PROPERTY 36 -#define SECCLASS_CURSOR 37 -#define SECCLASS_XCLIENT 38 -#define SECCLASS_XINPUT 39 -#define SECCLASS_XSERVER 40 -#define SECCLASS_XEXTENSION 41 -#define SECCLASS_PAX 42 +#define SECCLASS_X_DRAWABLE 31 +#define SECCLASS_X_SCREEN 32 +#define SECCLASS_X_GC 33 +#define SECCLASS_X_FONT 34 +#define SECCLASS_X_COLORMAP 35 +#define SECCLASS_X_PROPERTY 36 +#define SECCLASS_X_SELECTION 37 +#define SECCLASS_X_CURSOR 38 +#define SECCLASS_X_CLIENT 39 +#define SECCLASS_X_DEVICE 40 +#define SECCLASS_X_SERVER 41 +#define SECCLASS_X_EXTENSION 42#define SECCLASS_NETLINK_ROUTE_SOCKET 43#define SECCLASS_NETLINK_FIREWALL_SOCKET 44#define SECCLASS_NETLINK_TCPDIAG_SOCKET 45Quoted 1 line
These are renumbered, why are you doing that?
I did nothing other then take the policy in REFpolicy and run the make file on it.
Quoted 5 lines
Quoted 1 line
My only change was to add netlink
It looks like some classes got reclaimed/reordered in the policy but the headers weren't updated. We need to be careful about this, and I hope the kernel headers also got updated.
There was an overhaul of the X classes by Eamon. Doesn't affect the kernel. And even X doesn't use the libselinux #define's anymore - it uses the class/perm discovery support.
libselinux #define's are largely only there for legacy applications that still use the old interfaces.
Signature · 8 lines
Stephen Smalley National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.