selinux_r...ped_errors(3)
π selinux_r...ped_errors(3)
okay bestie, so this is a page from the SELinux API documentation β yes that whole manual, the one with the truncated name because apparently we ran out of room π« β and it's about one little function that's genuinely so useful it's giving β¨quiet luxuryβ¨.
πΈ NAME πΈ
selinux_restorecon_get_skipped_errors β she tells you how many errors got ignored while selinux_restorecon(3) or selinux_restorecon_parallel(3) was doing its lil file tree walk πΆβοΈπ³
like. she counts the oopsies that got skipped. that's the whole job. and she does it flawlessly.
β¨ SYNOPSIS β¨
#include <selinux/restorecon.h>
long unsigned selinux_restorecon_get_skipped_errors(void);
no arguments, no drama, no parameters. she takes nothing and gives you a long unsigned int. main character energy fr fr π
π¦ DESCRIPTION π¦
okay so here's the tea β β this function is a report card, and it only works if you set things up right first:
if SELINUX_RESTORECON_COUNT_ERRORS was passed to selinux_restorecon(3) or selinux_restorecon_parallel(3), and that function returned successfully (i.e., with a zero return value π), then selinux_restorecon_get_skipped_errors() returns the number of errors ignored during the file tree walk.
that's it. that's the whole vibe. she counts the errors you told her to count, and she hands you the number πβοΈ
lowkey important: both conditions gotta be true, bestie. the flag has to have been passed, and the call has to have come back with 0. otherwise this number isn't the number you think it is. no cap.
π SEE ALSO π
selinux_restorecon(3)β the icon herself, the one who actually does the walking π
and that's the whole page, babe β short, sweet, and exactly one (1) function deep π
this lil gem lives in the Security Enhanced Linux docs, dated 27 Apr 2022 π go forth and count your skipped errors, bestie β iykyk π β¨
π¦ where this page comes from
- alpine 3.24: libselinux-doc 3.10-r1 Β· Public-Domain
- centos-stream 10: libselinux-devel 3.11-3.el10 Β· LicenseRef-Fedora-Public-Domain
- centos-stream 9: libselinux-devel 3.6-5.el9 Β· Public Domain
- centos-stream 9: libselinux-devel 3.6-5.el9 Β· Public Domain
- debian bookworm: libselinux1-dev 3.4-1+b6
- debian trixie: libselinux1-dev 3.8.1-1 Β· LicenseRef-public-domain
- fedora 43: libselinux-devel 3.9-5.fc43 Β· LicenseRef-Fedora-Public-Domain
- fedora 43: libselinux-devel 3.9-5.fc43 Β· LicenseRef-Fedora-Public-Domain
- fedora 44: libselinux-devel 3.10-1.fc44 Β· LicenseRef-Fedora-Public-Domain
- fedora 44: libselinux-devel 3.10-1.fc44 Β· LicenseRef-Fedora-Public-Domain
- fedora 44: libselinux-devel 3.11-2.fc44 Β· LicenseRef-Fedora-Public-Domain
- fedora 44: libselinux-devel 3.11-2.fc44 Β· LicenseRef-Fedora-Public-Domain
- nixos 26.05: libselinux 3.10
- nixpkgs unstable: libselinux 3.11
- opensuse-leap 16.0: libselinux-devel 3.8.1-160000.4.1 Β· SUSE-Public-Domain
- opensuse-leap 16.0: libselinux-devel 3.8.1-160000.4.1 Β· SUSE-Public-Domain
- opensuse-leap 16.0: libselinux-devel 3.8.1-160000.4.1 Β· SUSE-Public-Domain
- opensuse-leap 16.0: libselinux-devel 3.8.1-160000.4.1 Β· SUSE-Public-Domain
- ubuntu noble: libselinux1-dev 3.5-2ubuntu2 Β· LicenseRef-public-domain
- ubuntu noble: libselinux1-dev 3.5-2ubuntu2.1 Β· LicenseRef-public-domain
- ubuntu questing: libselinux1-dev 3.8.1-1build1
- ubuntu resolute: libselinux-dev 3.9-4build1 Β· LicenseRef-public-domain
- ubuntu stonking: libselinux-dev 3.11-2.1 Β· LicenseRef-public-domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms