65fea56f17cd614bc8908264df980a62e1931468vboxsync/************************************************************
65fea56f17cd614bc8908264df980a62e1931468vboxsyncAuthor: Eamon Walsh <ewalsh@tycho.nsa.gov>
65fea56f17cd614bc8908264df980a62e1931468vboxsyncPermission to use, copy, modify, distribute, and sell this software and its
65fea56f17cd614bc8908264df980a62e1931468vboxsyncdocumentation for any purpose is hereby granted without fee, provided that
65fea56f17cd614bc8908264df980a62e1931468vboxsyncthis permission notice appear in supporting documentation. This permission
65fea56f17cd614bc8908264df980a62e1931468vboxsyncnotice shall be included in all copies or substantial portions of the
65fea56f17cd614bc8908264df980a62e1931468vboxsyncTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
65fea56f17cd614bc8908264df980a62e1931468vboxsyncIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
65fea56f17cd614bc8908264df980a62e1931468vboxsyncFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
65fea56f17cd614bc8908264df980a62e1931468vboxsyncAUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
65fea56f17cd614bc8908264df980a62e1931468vboxsyncAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
65fea56f17cd614bc8908264df980a62e1931468vboxsyncCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
65fea56f17cd614bc8908264df980a62e1931468vboxsync********************************************************/
65fea56f17cd614bc8908264df980a62e1931468vboxsync/* subject state (clients and devices only) */
65fea56f17cd614bc8908264df980a62e1931468vboxsynctypedef struct {
65fea56f17cd614bc8908264df980a62e1931468vboxsync/* object state */
65fea56f17cd614bc8908264df980a62e1931468vboxsynctypedef struct {
65fea56f17cd614bc8908264df980a62e1931468vboxsync * Label functions
65fea56f17cd614bc8908264df980a62e1931468vboxsync SELinuxAtomToSID(Atom atom, int prop, SELinuxObjectRec ** obj_rtn);
65fea56f17cd614bc8908264df980a62e1931468vboxsyncSELinuxSelectionToSID(Atom selection, SELinuxSubjectRec * subj,
65fea56f17cd614bc8908264df980a62e1931468vboxsyncSELinuxPropertyToSID(Atom property, SELinuxSubjectRec * subj,
65fea56f17cd614bc8908264df980a62e1931468vboxsyncSELinuxEventToSID(unsigned type, security_id_t sid_of_window,
65fea56f17cd614bc8908264df980a62e1931468vboxsync SELinuxExtensionToSID(const char *name, security_id_t * sid_rtn);
65fea56f17cd614bc8908264df980a62e1931468vboxsync * Security module functions
65fea56f17cd614bc8908264df980a62e1931468vboxsync * Private Flask definitions
65fea56f17cd614bc8908264df980a62e1931468vboxsync/* Security class constants */
65fea56f17cd614bc8908264df980a62e1931468vboxsync/* Mapping from DixAccess bits to Flask permissions */
65fea56f17cd614bc8908264df980a62e1931468vboxsync {"x_drawable",
65fea56f17cd614bc8908264df980a62e1931468vboxsync {"x_screen",
65fea56f17cd614bc8908264df980a62e1931468vboxsync {"x_colormap",
65fea56f17cd614bc8908264df980a62e1931468vboxsync {"x_property",
65fea56f17cd614bc8908264df980a62e1931468vboxsync {"x_selection",
65fea56f17cd614bc8908264df980a62e1931468vboxsync {"x_cursor",
65fea56f17cd614bc8908264df980a62e1931468vboxsync {"x_client",
65fea56f17cd614bc8908264df980a62e1931468vboxsync {"x_pointer",
65fea56f17cd614bc8908264df980a62e1931468vboxsync {"x_keyboard",
65fea56f17cd614bc8908264df980a62e1931468vboxsync {"x_server",
65fea56f17cd614bc8908264df980a62e1931468vboxsync {"x_extension",
65fea56f17cd614bc8908264df980a62e1931468vboxsync {"x_event",
65fea56f17cd614bc8908264df980a62e1931468vboxsync {"x_synthetic_event",
65fea56f17cd614bc8908264df980a62e1931468vboxsync {"x_resource",
65fea56f17cd614bc8908264df980a62e1931468vboxsync/* x_resource "read" bits from the list above */
65fea56f17cd614bc8908264df980a62e1931468vboxsync#define SELinuxReadMask (DixReadAccess|DixGetAttrAccess|DixListPropAccess| \
65fea56f17cd614bc8908264df980a62e1931468vboxsync DixGetPropAccess|DixGetFocusAccess|DixListAccess| \
65fea56f17cd614bc8908264df980a62e1931468vboxsync#endif /* _XSELINUX_NEED_FLASK_MAP */
65fea56f17cd614bc8908264df980a62e1931468vboxsync#endif /* _XSELINUXINT_H */