Skip to content

Resolve file paths inside OSCAP_PROBE_ROOT - #2475

Open
0intro wants to merge 1 commit into
OpenSCAP:mainfrom
0intro:djc/probe-root-paths
Open

0intro wants to merge 1 commit into
OpenSCAP:mainfrom
0intro:djc/probe-root-paths

Conversation

@0intro

@0intro 0intro commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

The file probes join OSCAP_PROBE_ROOT with the paths they read, and
the kernel resolves an absolute symbolic link from the real root. So
with a RHEL 9 root, whose /etc/pam.d/system-auth links to
/etc/authselect/system-auth, the PAM checks read the scanner's
files, and the file walker skipped such links as dangling.

test_probes_system_info_offline_mode.sh linked etc to the real /etc,
which now resolves to itself, so it builds a root of its own.

Also have the partition probe read the root's /proc/1/mounts, since
the root's /proc/mounts lists the mounts of the reading process.

The file probes join OSCAP_PROBE_ROOT with the paths they read, and
the kernel resolves an absolute symbolic link from the real root. So
with a RHEL 9 root, whose /etc/pam.d/system-auth links to
/etc/authselect/system-auth, the PAM checks read the scanner's
files, and the file walker skipped such links as dangling.

test_probes_system_info_offline_mode.sh linked etc to the real /etc,
which now resolves to itself, so it builds a root of its own.

Also have the partition probe read the root's /proc/1/mounts, since
the root's /proc/mounts lists the mounts of the reading process.
@0intro
0intro force-pushed the djc/probe-root-paths branch from fd36cab to 141e7d8 Compare October 29, 2026 20:51
@sonarqubecloud

Copy link
Copy Markdown

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.

1 participant