Skip to content

fix: suppress spammy AVC denials from Trivalent reading /proc#1526

Merged
RoyalOughtness merged 2 commits intosecureblue:livefrom
HastD:trivalent-dontaudit
Nov 6, 2025
Merged

fix: suppress spammy AVC denials from Trivalent reading /proc#1526
RoyalOughtness merged 2 commits intosecureblue:livefrom
HastD:trivalent-dontaudit

Conversation

@HastD
Copy link
Copy Markdown
Collaborator

@HastD HastD commented Oct 29, 2025

The Trivalent launch script reads /proc to determine whether an instance of Trivalent is already running, and this results in a bunch of irrelevant SELinux denials from attempting to read other processes' info. This dontaudit rule suppresses those messages.

RoyalOughtness
RoyalOughtness previously approved these changes Nov 6, 2025
@RoyalOughtness
Copy link
Copy Markdown
Collaborator

@HastD


[17:05:18 g.i/s/sericea-main-hardened:pr-1526-43] => Compiling targeted trivalent module
[17:05:18 g.i/s/sericea-main-hardened:pr-1526-43] => trivalent.te:318:ERROR 'unrecognized character' at token ''' on line 20046:
[17:05:18 g.i/s/sericea-main-hardened:pr-1526-43] => '
[17:05:18 g.i/s/sericea-main-hardened:pr-1526-43] => #line 318
[17:05:18 g.i/s/sericea-main-hardened:pr-1526-43] => /usr/bin/checkmodule:  error(s) encountered while parsing configuration
[17:05:18 g.i/s/sericea-main-hardened:pr-1526-43] => make: *** [/usr/share/selinux/devel/include/Makefile:157: tmp/trivalent.mod] Error 1

The Trivalent launch script reads `/proc` to determine whether an
instance of Trivalent is already running, and this results in a bunch of
irrelevant SELinux denials from attempting to read other processes'
info. This `dontaudit` rule suppresses those messages.

Signed-off-by: Daniel Hast <[email protected]>
@HastD
Copy link
Copy Markdown
Collaborator Author

HastD commented Nov 6, 2025

@RoyalOughtness Should be fixed now. Apparently .te files are parsed in such a way that ' characters in comments can cause issues in some contexts...

@RoyalOughtness RoyalOughtness enabled auto-merge (squash) November 6, 2025 18:45
@RoyalOughtness RoyalOughtness merged commit a2a5510 into secureblue:live Nov 6, 2025
19 checks passed
@HastD HastD deleted the trivalent-dontaudit branch November 6, 2025 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants