xcb_selinux_list_properties(3)

πŸ“¦
version 1.17.0 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– xcb_selinux_list_properties πŸ’–

okay bestie, welcome to the xcb_selinux_list_properties page, straight out of the XCB Requests section of the manual (section 3, library calls, iykyk). this one's a little baby request that lists SELinux properties on a window and honestly? she's lowkey mysterious because half the fields are literally TODO: NOT YET DOCUMENTED. but we're gonna walk through every single piece of her anyway, no skipping, fr fr. πŸŽ€


✨ NAME ✨

xcb_selinux_list_properties β€” and that's it, that's the whole name line. no description given. the manpage said nothing else. iconic silence, honestly. πŸ’…


✨ SYNOPSIS ✨

#include <xcb/xselinux.h>

πŸ¦‹ Request function πŸ¦‹

xcb_selinux_list_properties_cookie_t
xcb_selinux_list_properties(xcb_connection_t *conn,
              xcb_window_t window);

πŸ¦‹ Reply datastructure πŸ¦‹

typedef struct xcb_selinux_list_properties_reply_t {
    uint8_t  response_type;
    uint8_t  pad0;
    uint16_t sequence;
    uint32_t length;
    uint32_t properties_len;
    uint8_t  pad1[20];
} xcb_selinux_list_properties_reply_t;

πŸ¦‹ Reply function πŸ¦‹

xcb_selinux_list_properties_reply_t
*xcb_selinux_list_properties_reply(xcb_connection_t *conn,
              xcb_selinux_list_properties_cookie_t cookie,
              xcb_generic_error_t **e);

πŸ¦‹ Reply accessors πŸ¦‹

int xcb_selinux_list_properties_properties_length(const
              xcb_selinux_list_properties_reply_t *reply);
xcb_selinux_list_item_iterator_t
xcb_selinux_list_properties_properties_iterator(const
              xcb_selinux_list_properties_reply_t *reply);

look at those accessors go, giving main character energy. πŸ”₯


🌸 REQUEST ARGUMENTS 🌸

  • conn β€” the XCB connection to X11. your link to the server, your emotional support socket. 🫢
  • window β€” TODO: NOT YET DOCUMENTED. yeah. the manpage just says that. we don't know. nobody told us. it's giving mystery. πŸ™ˆ

🌈 REPLY FIELDS 🌈

  • response_type β€” the type of this reply, in this case XCB_SELINUX_LIST_PROPERTIES. this field is also present in the xcb_generic_reply_t and can be used to tell replies apart from each other. basically her little name tag so you know which reply just walked in. πŸ‘‘
  • sequence β€” the sequence number of the last request processed by the X11 server. the receipt, the tracking number, the "yes I got your message" text. ✨
  • length β€” the length of the reply, in words (a word is 4 bytes). yes bestie, a word, and it's 4 bytes. that's just how X rolls. πŸ’€
  • properties_len β€” TODO: NOT YET DOCUMENTED. again!! the docs ghosted us on this one too. 😭

🧚 DESCRIPTION 🧚

…and that's the whole section. nothing. empty. the DESCRIPTION section literally contains no words in the original. she said "no thoughts, head empty." 🌸


⭐ RETURN VALUE ⭐

Returns an xcb_selinux_list_properties_cookie_t. that's your cookie, your little ticket to come back and pick up the reply later. πŸ“

Errors have to be handled when calling the reply function xcb_selinux_list_properties_reply.

If you want to handle errors in the event loop instead, use xcb_selinux_list_properties_unchecked. See xcb-requests(3) for details.

ok so real talk: pick a lane, bestie. either you deal with errors at reply time, or you go unchecked and catch them in the event loop. don't be chaotic about it. πŸ’…

πŸ’œ ERRORS πŸ’œ

This request does never generate any errors.

like… at all. zero. none. a truly drama-free request. we love a low-maintenance queen. ✨


πŸŽ€ SEE ALSO πŸŽ€

…this section is empty in the original. no references. she stands alone. independent. no cap. πŸ‘‘


πŸ¦‹ AUTHOR πŸ¦‹

Generated from xselinux.xml. Contact xcb@lists.freedesktop.org for corrections and improvements.

so if you spot something wrong, that's the address to slide into. polite emails only bestie. 🫢


and that's the whole page!! mwah. πŸ’–

X Version 11 Β· libxcb 1.17.0 Β· xcb_selinux_list_properties(3) β€” that's the footer, and this is me signing off. go forth and list those properties, bestie. periodt. πŸ’…βœ¨πŸŒˆ