xcb_selinux_g...y_use_context(3)
π xcb_selinux_get_property_use_context(3) π
okay bestie, welcome to the XCB Requests corner of the manual, this one's from libxcb and it lives in the X Version 11 crowd. sit down, grab a strawberry π, we're talking about the SELinux "get property use context" request and it's gonna be so chill actually.
β¨ NAME β¨
xcb_selinux_get_property_use_context β
no cap, that description field is literally empty in the original. the name is the whole story here. the way that the manpage justβ¦ didn't elaborate π
πΈ SYNOPSIS πΈ
first things first, you gotta bring in the header, periodt:
#include <xcb/xselinux.h>
π Request function
xcb_selinux_get_property_use_context_cookie_t
xcb_selinux_get_property_use_context(xcb_connection_t *conn,
π Reply datastructure
here's the little struct that comes back, every field laid out exactly like this:
typedef struct xcb_selinux_get_property_use_context_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint32_t context_len;
uint8_t pad1[20];
} xcb_selinux_get_property_use_context_reply_t;
π Reply function
xcb_selinux_get_property_use_context_reply_t
*xcb_selinux_get_property_use_context_reply(xcb_connection_t *conn,
xcb_selinux_get_property_use_context_cookie_t cookie,
xcb_generic_error_t **e);
π Reply accessors
these are the lil helpers that reach into the reply for you, so you don't have to do pointer math like a Victorian orphan:
char *xcb_selinux_get_property_use_context_context(const
xcb_selinux_get_property_use_context_request_t *reply);
int xcb_selinux_get_property_use_context_context_length(const
xcb_selinux_get_property_use_context_reply_t *reply);
xcb_generic_iterator_t
xcb_selinux_get_property_use_context_context_end(const
xcb_selinux_get_property_use_context_reply_t *reply);
π¦ REQUEST ARGUMENTS π¦
connβ The XCB connection to X11. that's your whole ride-or-die handle to the server, she's the main character here π
β REPLY FIELDS β
response_typeβ The type of this reply, in this caseXCB_SELINUX_GET_PROPERTY_USE_CONTEXT. This field is also present in thexcb_generic_reply_tand can be used to tell replies apart from each other. it's giving "name tag at a party" π·οΈsequenceβ The sequence number of the last request processed by the X11 server.lengthβ The length of the reply, in words (a word is 4 bytes).context_lenβTODO: NOT YET DOCUMENTED.π not the mystery field. the original really said "figure it out" and honestly? iconic.
π DESCRIPTION π
bestieβ¦ there is genuinely nothing here. the DESCRIPTION section is empty in the source. i'm not gonna invent lore for it, that's not the vibe. it's just blank. we move on π«Ά
π RETURN VALUE π
Returns an xcb_selinux_get_property_use_context_cookie_t. Errors have to be handled when calling the reply function xcb_selinux_get_property_use_context_reply.
If you want to handle errors in the event loop instead, use xcb_selinux_get_property_use_context_unchecked. See xcb-requests(3) for details.
so like, two paths, both valid, choose your fighter β¨
π ERRORS π
This request does never generate any errors.
literally zero errors. not one. she's unproblematic, she's low maintenance, she shows up and does the thing. slay π
π§ SEE ALSO π§
empty in the original too π no cross-refs, no side quests. just vibes and this page.
π AUTHOR π
Generated from xselinux.xml. Contact xcb@lists.freedesktop.org for corrections and improvements.
and that's the whole page, babe π thanks for reading the XCB Requests manual with me β this one shipped with libxcb 1.17.0 under X Version 11. go forth, compile responsibly, and remember: context_len remains undocumented and we simply have to live with that ππ
π¦ where this page comes from
- alpine 3.22: libxcb-doc 1.17.0-r0 Β· MIT
- alpine 3.23: libxcb-doc 1.17.0-r1 Β· MIT
- alpine 3.24: libxcb-doc 1.17.0-r2 Β· MIT
- arch rolling: libxcb 1.17.0-1 Β· X11
- centos-stream 10: libxcb-devel 1.17.0-3.el10 Β· X11
- debian trixie: libxcb-doc 1.17.0-2
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- nixpkgs unstable: libxcb 1.17.0
- opensuse-leap 16.0: libxcb-devel-doc 1.17.0-160000.2.2 Β· MIT
- ubuntu questing: libxcb-doc 1.17.0-2build1
- ubuntu resolute: libxcb-doc 1.17.0-2ubuntu1
- ubuntu stonking: libxcb-doc 1.17.0-2ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms