You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When checking permissions, permissions of symlinks are checked instead of the binary file (compilers)
Version
Ubuntu 22.04
Lynis version 3.1.1
Expected behavior
Permissions to the file (compiler executable file) to which the symlink points must be checked. Instead, the symlink's permissions are checked (which always have maximum permissions)
Output
grep compiler /var/log/lynis.log
2024-06-21 19:02:30 Found known binary: as (compiler) - /usr/bin/as
2024-06-21 19:02:59 Performing test ID HRDN-7220 (Check if one or more compilers are installed)
2024-06-21 19:02:59 Test: Check if one or more compilers can be found on the system
2024-06-21 19:02:59 Result: found installed compiler. See top of logfile which compilers have been found or use /usr/bin/grep to filter on 'compiler'
2024-06-21 19:02:59 Performing test ID HRDN-7222 (Check compiler permissions)
2024-06-21 19:02:59 Test: Check if one or more compilers can be found on the system
ls -l /usr/bin/as
lrwxrwxrwx 1 root root 28 Jun 21 17:35 /usr/bin/as -> /usr/bin/x86_64-linux-gnu-as
ls -l /usr/bin/x86_64-linux-gnu-as
-r-x------ 1 root root 696624 Jan 23 10:47 /usr/bin/x86_64-linux-gnu-as
Additional context
Symlink found /usr/bin/as
The permissions on the symlink were checked and an error was returned.
But in fact the symlink points to the compiler /usr/bin/x86_64-linux-gnu-as , which has the correct permissions
The text was updated successfully, but these errors were encountered:
Describe the bug
When checking permissions, permissions of symlinks are checked instead of the binary file (compilers)
Version
Expected behavior
Permissions to the file (compiler executable file) to which the symlink points must be checked. Instead, the symlink's permissions are checked (which always have maximum permissions)
Output
ls -l /usr/bin/as lrwxrwxrwx 1 root root 28 Jun 21 17:35 /usr/bin/as -> /usr/bin/x86_64-linux-gnu-as
Additional context
Symlink found /usr/bin/as
The permissions on the symlink were checked and an error was returned.
But in fact the symlink points to the compiler /usr/bin/x86_64-linux-gnu-as , which has the correct permissions
The text was updated successfully, but these errors were encountered: