Library files must have mode 0755 or less permissive.

From Oracle Linux 5 Security Technical Implementation Guide

Part of GEN001300

Associated with: CCI-001499

SV-64525r2_rule Library files must have mode 0755 or less permissive.

Vulnerability discussion

Unauthorized access could destroy the integrity of the library files.

Check content

Check the mode of library files. Procedure: # DIRS="/usr/lib /lib /usr/lib64 /lib64";for DIR in $DIRS;do find $DIR -type f -perm +022 -exec stat -c %a:%n {} \;;done This will return the octal permissions and name of all group or world writable files. If any file listed is world or group writable (either or both of the 2 lowest order digits contain a 2, 3 or 6), this is a finding.

Fix text

Change the mode of library files to 0755 or less permissive. Procedure (example): # chmod go-w Note: Library files should have an extension of ".a" or a ".so" extension, possibly followed by a version number.

Pro Tips

Lavender hyperlinks in small type off to the right (of CSS class id, if you view the page source) point to globally unique URIs for each document and item. Copy the link location and paste anywhere you need to talk unambiguously about these things.

You can obtain data about documents and items in other formats. Simply provide an HTTP header Accept: text/turtle or Accept: application/rdf+xml.

Powered by sagemincer