Skip to contentSkip to conversation

Latest flask definitions for libselinux.

PATCH Daniel J Walsh 1 participant 1 message Sep 22, 2008 SELinux security module

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Adds open, X Definitions and nlmsg_tty_audit for netlink_audit_socket -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkjX2uIACgkQrlYvE4MpobON1QCgiyFHHYJGEz9OgLp/WA8lViLo zQsAoOU8yzanBCUfFLkBJ1lbPsrJhqT7
=Us2A
-----END PGP SIGNATURE-----

include/selinux/av_permissions.h +105 -85
diff --exclude-from=exclude -N -u -r nsalibselinux/include/selinux/av_permissions.h libselinux-2.0.71/include/selinux/av_permissions.h
@@ -85,6 +85,7 @@
 #define DIR__REPARENT                             0x00080000UL
 #define DIR__SEARCH                               0x00100000UL
 #define DIR__RMDIR                                0x00200000UL
+#define DIR__OPEN                                 0x00400000UL
 #define FILE__IOCTL                               0x00000001UL
 #define FILE__READ                                0x00000002UL
 #define FILE__WRITE                               0x00000004UL
@@ -105,6 +106,7 @@
 #define FILE__EXECUTE_NO_TRANS                    0x00020000UL
 #define FILE__ENTRYPOINT                          0x00040000UL
 #define FILE__EXECMOD                             0x00080000UL
+#define FILE__OPEN                                0x00100000UL
 #define LNK_FILE__IOCTL                           0x00000001UL
 #define LNK_FILE__READ                            0x00000002UL
 #define LNK_FILE__WRITE                           0x00000004UL
@@ -142,6 +144,7 @@
 #define CHR_FILE__EXECUTE_NO_TRANS                0x00020000UL
 #define CHR_FILE__ENTRYPOINT                      0x00040000UL
 #define CHR_FILE__EXECMOD                         0x00080000UL
+#define CHR_FILE__OPEN                            0x00100000UL
 #define BLK_FILE__IOCTL                           0x00000001UL
 #define BLK_FILE__READ                            0x00000002UL
 #define BLK_FILE__WRITE                           0x00000004UL
@@ -159,6 +162,7 @@
 #define BLK_FILE__SWAPON                          0x00004000UL
 #define BLK_FILE__QUOTAON                         0x00008000UL
 #define BLK_FILE__MOUNTON                         0x00010000UL
+#define BLK_FILE__OPEN                            0x00020000UL
 #define SOCK_FILE__IOCTL                          0x00000001UL
 #define SOCK_FILE__READ                           0x00000002UL
 #define SOCK_FILE__WRITE                          0x00000004UL
@@ -193,6 +197,7 @@
 #define FIFO_FILE__SWAPON                         0x00004000UL
 #define FIFO_FILE__QUOTAON                        0x00008000UL
 #define FIFO_FILE__MOUNTON                        0x00010000UL
+#define FIFO_FILE__OPEN                           0x00020000UL
 #define FD__USE                                   0x00000001UL
 #define SOCKET__IOCTL                             0x00000001UL
 #define SOCKET__READ                              0x00000002UL
@@ -547,91 +552,102 @@
 #define PASSWD__CHSH                              0x00000004UL
 #define PASSWD__ROOTOK                            0x00000008UL
 #define PASSWD__CRONTAB                           0x00000010UL
-#define DRAWABLE__CREATE                          0x00000001UL
-#define DRAWABLE__DESTROY                         0x00000002UL
-#define DRAWABLE__DRAW                            0x00000004UL
-#define DRAWABLE__COPY                            0x00000008UL
-#define DRAWABLE__GETATTR                         0x00000010UL
-#define GC__CREATE                                0x00000001UL
-#define GC__FREE                                  0x00000002UL
-#define GC__GETATTR                               0x00000004UL
-#define GC__SETATTR                               0x00000008UL
-#define WINDOW__ADDCHILD                          0x00000001UL
-#define WINDOW__CREATE                            0x00000002UL
-#define WINDOW__DESTROY                           0x00000004UL
-#define WINDOW__MAP                               0x00000008UL
-#define WINDOW__UNMAP                             0x00000010UL
-#define WINDOW__CHSTACK                           0x00000020UL
-#define WINDOW__CHPROPLIST                        0x00000040UL
-#define WINDOW__CHPROP                            0x00000080UL
-#define WINDOW__LISTPROP                          0x00000100UL
-#define WINDOW__GETATTR                           0x00000200UL
-#define WINDOW__SETATTR                           0x00000400UL
-#define WINDOW__SETFOCUS                          0x00000800UL
-#define WINDOW__MOVE                              0x00001000UL
-#define WINDOW__CHSELECTION                       0x00002000UL
-#define WINDOW__CHPARENT                          0x00004000UL
-#define WINDOW__CTRLLIFE                          0x00008000UL
-#define WINDOW__ENUMERATE                         0x00010000UL
-#define WINDOW__TRANSPARENT                       0x00020000UL
-#define WINDOW__MOUSEMOTION                       0x00040000UL
-#define WINDOW__CLIENTCOMEVENT                    0x00080000UL
-#define WINDOW__INPUTEVENT                        0x00100000UL
-#define WINDOW__DRAWEVENT                         0x00200000UL
-#define WINDOW__WINDOWCHANGEEVENT                 0x00400000UL
-#define WINDOW__WINDOWCHANGEREQUEST               0x00800000UL
-#define WINDOW__SERVERCHANGEEVENT                 0x01000000UL
-#define WINDOW__EXTENSIONEVENT                    0x02000000UL
-#define FONT__LOAD                                0x00000001UL
-#define FONT__FREE                                0x00000002UL
-#define FONT__GETATTR                             0x00000004UL
-#define FONT__USE                                 0x00000008UL
-#define COLORMAP__CREATE                          0x00000001UL
-#define COLORMAP__FREE                            0x00000002UL
-#define COLORMAP__INSTALL                         0x00000004UL
-#define COLORMAP__UNINSTALL                       0x00000008UL
-#define COLORMAP__LIST                            0x00000010UL
-#define COLORMAP__READ                            0x00000020UL
-#define COLORMAP__STORE                           0x00000040UL
-#define COLORMAP__GETATTR                         0x00000080UL
-#define COLORMAP__SETATTR                         0x00000100UL
-#define PROPERTY__CREATE                          0x00000001UL
-#define PROPERTY__FREE                            0x00000002UL
-#define PROPERTY__READ                            0x00000004UL
-#define PROPERTY__WRITE                           0x00000008UL
-#define CURSOR__CREATE                            0x00000001UL
-#define CURSOR__CREATEGLYPH                       0x00000002UL
-#define CURSOR__FREE                              0x00000004UL
-#define CURSOR__ASSIGN                            0x00000008UL
-#define CURSOR__SETATTR                           0x00000010UL
-#define XCLIENT__KILL                             0x00000001UL
-#define XINPUT__LOOKUP                            0x00000001UL
-#define XINPUT__GETATTR                           0x00000002UL
-#define XINPUT__SETATTR                           0x00000004UL
-#define XINPUT__SETFOCUS                          0x00000008UL
-#define XINPUT__WARPPOINTER                       0x00000010UL
-#define XINPUT__ACTIVEGRAB                        0x00000020UL
-#define XINPUT__PASSIVEGRAB                       0x00000040UL
-#define XINPUT__UNGRAB                            0x00000080UL
-#define XINPUT__BELL                              0x00000100UL
-#define XINPUT__MOUSEMOTION                       0x00000200UL
-#define XINPUT__RELABELINPUT                      0x00000400UL
-#define XSERVER__SCREENSAVER                      0x00000001UL
-#define XSERVER__GETHOSTLIST                      0x00000002UL
-#define XSERVER__SETHOSTLIST                      0x00000004UL
-#define XSERVER__GETFONTPATH                      0x00000008UL
-#define XSERVER__SETFONTPATH                      0x00000010UL
-#define XSERVER__GETATTR                          0x00000020UL
-#define XSERVER__GRAB                             0x00000040UL
-#define XSERVER__UNGRAB                           0x00000080UL
-#define XEXTENSION__QUERY                         0x00000001UL
-#define XEXTENSION__USE                           0x00000002UL
-#define PAX__PAGEEXEC                             0x00000001UL
-#define PAX__EMUTRAMP                             0x00000002UL
-#define PAX__MPROTECT                             0x00000004UL
-#define PAX__RANDMMAP                             0x00000008UL
-#define PAX__RANDEXEC                             0x00000010UL
-#define PAX__SEGMEXEC                             0x00000020UL
+#define X_DRAWABLE__CREATE                        0x00000001UL
+#define X_DRAWABLE__DESTROY                       0x00000002UL
+#define X_DRAWABLE__READ                          0x00000004UL
+#define X_DRAWABLE__WRITE                         0x00000008UL
+#define X_DRAWABLE__BLEND                         0x00000010UL
+#define X_DRAWABLE__GETATTR                       0x00000020UL
+#define X_DRAWABLE__SETATTR                       0x00000040UL
+#define X_DRAWABLE__LIST_CHILD                    0x00000080UL
+#define X_DRAWABLE__ADD_CHILD                     0x00000100UL
+#define X_DRAWABLE__REMOVE_CHILD                  0x00000200UL
+#define X_DRAWABLE__LIST_PROPERTY                 0x00000400UL
+#define X_DRAWABLE__GET_PROPERTY                  0x00000800UL
+#define X_DRAWABLE__SET_PROPERTY                  0x00001000UL
+#define X_DRAWABLE__MANAGE                        0x00002000UL
+#define X_DRAWABLE__OVERRIDE                      0x00004000UL
+#define X_DRAWABLE__SHOW                          0x00008000UL
+#define X_DRAWABLE__HIDE                          0x00010000UL
+#define X_DRAWABLE__SEND                          0x00020000UL
+#define X_DRAWABLE__RECEIVE                       0x00040000UL
+#define X_SCREEN__GETATTR                         0x00000001UL
+#define X_SCREEN__SETATTR                         0x00000002UL
+#define X_SCREEN__HIDE_CURSOR                     0x00000004UL
+#define X_SCREEN__SHOW_CURSOR                     0x00000008UL
+#define X_SCREEN__SAVER_GETATTR                   0x00000010UL
+#define X_SCREEN__SAVER_SETATTR                   0x00000020UL
+#define X_SCREEN__SAVER_HIDE                      0x00000040UL
+#define X_SCREEN__SAVER_SHOW                      0x00000080UL
+#define X_GC__CREATE                              0x00000001UL
+#define X_GC__DESTROY                             0x00000002UL
+#define X_GC__GETATTR                             0x00000004UL
+#define X_GC__SETATTR                             0x00000008UL
+#define X_GC__USE                                 0x00000010UL
+#define X_FONT__CREATE                            0x00000001UL
+#define X_FONT__DESTROY                           0x00000002UL
+#define X_FONT__GETATTR                           0x00000004UL
+#define X_FONT__ADD_GLYPH                         0x00000008UL
+#define X_FONT__REMOVE_GLYPH                      0x00000010UL
+#define X_FONT__USE                               0x00000020UL
+#define X_COLORMAP__CREATE                        0x00000001UL
+#define X_COLORMAP__DESTROY                       0x00000002UL
+#define X_COLORMAP__READ                          0x00000004UL
+#define X_COLORMAP__WRITE                         0x00000008UL
+#define X_COLORMAP__GETATTR                       0x00000010UL
+#define X_COLORMAP__ADD_COLOR                     0x00000020UL
+#define X_COLORMAP__REMOVE_COLOR                  0x00000040UL
+#define X_COLORMAP__INSTALL                       0x00000080UL
+#define X_COLORMAP__UNINSTALL                     0x00000100UL
+#define X_COLORMAP__USE                           0x00000200UL
+#define X_PROPERTY__CREATE                        0x00000001UL
+#define X_PROPERTY__DESTROY                       0x00000002UL
+#define X_PROPERTY__READ                          0x00000004UL
+#define X_PROPERTY__WRITE                         0x00000008UL
+#define X_PROPERTY__APPEND                        0x00000010UL
+#define X_PROPERTY__GETATTR                       0x00000020UL
+#define X_PROPERTY__SETATTR                       0x00000040UL
+#define X_SELECTION__READ                         0x00000001UL
+#define X_SELECTION__WRITE                        0x00000002UL
+#define X_SELECTION__GETATTR                      0x00000004UL
+#define X_SELECTION__SETATTR                      0x00000008UL
+#define X_CURSOR__CREATE                          0x00000001UL
+#define X_CURSOR__DESTROY                         0x00000002UL
+#define X_CURSOR__READ                            0x00000004UL
+#define X_CURSOR__WRITE                           0x00000008UL
+#define X_CURSOR__GETATTR                         0x00000010UL
+#define X_CURSOR__SETATTR                         0x00000020UL
+#define X_CURSOR__USE                             0x00000040UL
+#define X_CLIENT__DESTROY                         0x00000001UL
+#define X_CLIENT__GETATTR                         0x00000002UL
+#define X_CLIENT__SETATTR                         0x00000004UL
+#define X_CLIENT__MANAGE                          0x00000008UL
+#define X_DEVICE__GETATTR                         0x00000001UL
+#define X_DEVICE__SETATTR                         0x00000002UL
+#define X_DEVICE__USE                             0x00000004UL
+#define X_DEVICE__READ                            0x00000008UL
+#define X_DEVICE__WRITE                           0x00000010UL
+#define X_DEVICE__GETFOCUS                        0x00000020UL
+#define X_DEVICE__SETFOCUS                        0x00000040UL
+#define X_DEVICE__BELL                            0x00000080UL
+#define X_DEVICE__FORCE_CURSOR                    0x00000100UL
+#define X_DEVICE__FREEZE                          0x00000200UL
+#define X_DEVICE__GRAB                            0x00000400UL
+#define X_DEVICE__MANAGE                          0x00000800UL
+#define X_SERVER__GETATTR                         0x00000001UL
+#define X_SERVER__SETATTR                         0x00000002UL
+#define X_SERVER__RECORD                          0x00000004UL
+#define X_SERVER__DEBUG                           0x00000008UL
+#define X_SERVER__GRAB                            0x00000010UL
+#define X_SERVER__MANAGE                          0x00000020UL
+#define X_EXTENSION__QUERY                        0x00000001UL
+#define X_EXTENSION__USE                          0x00000002UL
+#define X_RESOURCE__READ                          0x00000001UL
+#define X_RESOURCE__WRITE                         0x00000002UL
+#define X_EVENT__SEND                             0x00000001UL
+#define X_EVENT__RECEIVE                          0x00000002UL
+#define X_SYNTHETIC_EVENT__SEND                   0x00000001UL
+#define X_SYNTHETIC_EVENT__RECEIVE                0x00000002UL
 #define NETLINK_ROUTE_SOCKET__IOCTL               0x00000001UL
 #define NETLINK_ROUTE_SOCKET__READ                0x00000002UL
 #define NETLINK_ROUTE_SOCKET__WRITE               0x00000004UL
@@ -798,6 +814,7 @@
 #define NETLINK_AUDIT_SOCKET__NLMSG_WRITE         0x00800000UL
 #define NETLINK_AUDIT_SOCKET__NLMSG_RELAY         0x01000000UL
 #define NETLINK_AUDIT_SOCKET__NLMSG_READPRIV      0x02000000UL
+#define NETLINK_AUDIT_SOCKET__NLMSG_TTY_AUDIT     0x04000000UL
 #define NETLINK_IP6FW_SOCKET__IOCTL               0x00000001UL
 #define NETLINK_IP6FW_SOCKET__READ                0x00000002UL
 #define NETLINK_IP6FW_SOCKET__WRITE               0x00000004UL
@@ -1004,3 +1021,6 @@
 #define DB_BLOB__IMPORT                           0x00000100UL
 #define DB_BLOB__EXPORT                           0x00000200UL
 #define PEER__RECV                                0x00000001UL
+#define X_APPLICATION_DATA__PASTE                 0x00000001UL
+#define X_APPLICATION_DATA__PASTE_AFTER_CONFIRM   0x00000002UL
+#define X_APPLICATION_DATA__COPY                  0x00000004UL
include/selinux/flask.h +16 -12
diff --exclude-from=exclude -N -u -r nsalibselinux/include/selinux/flask.h libselinux-2.0.71/include/selinux/flask.h
@@ -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
@@ -74,6 +74,10 @@
 #define SECCLASS_DB_BLOB                                 67
 #define SECCLASS_PEER                                    68
 #define SECCLASS_CAPABILITY2                             69
+#define SECCLASS_X_RESOURCE                              70
+#define SECCLASS_X_EVENT                                 71
+#define SECCLASS_X_SYNTHETIC_EVENT                       72
+#define SECCLASS_X_APPLICATION_DATA                      73
 
 /*
  * Security identifier indices for initial entities
src/av_perm_to_string.h +105 -85

217 lines not on this page · raw message

src/class_to_string.h +16 -12
diff --exclude-from=exclude -N -u -r nsalibselinux/src/class_to_string.h libselinux-2.0.71/src/class_to_string.h
@@ -33,18 +33,18 @@
     S_("shm")
     S_("ipc")
     S_("passwd")
-    S_("drawable")
-    S_("window")
-    S_("gc")
-    S_("font")
-    S_("colormap")
-    S_("property")
-    S_("cursor")
-    S_("xclient")
-    S_("xinput")
-    S_("xserver")
-    S_("xextension")
-    S_("pax")
+    S_("x_drawable")
+    S_("x_screen")
+    S_("x_gc")
+    S_("x_font")
+    S_("x_colormap")
+    S_("x_property")
+    S_("x_selection")
+    S_("x_cursor")
+    S_("x_client")
+    S_("x_device")
+    S_("x_server")
+    S_("x_extension")
     S_("netlink_route_socket")
     S_("netlink_firewall_socket")
     S_("netlink_tcpdiag_socket")
@@ -72,3 +72,7 @@
     S_("db_blob")
     S_("peer")
     S_("capability2")
+    S_("x_resource")
+    S_("x_event")
+    S_("x_synthetic_event")
+    S_("x_application_data")