Table of Contents

Protection Against Unwanted Execution

Administration Goals

Protect against execution of uncontrolled files or libraries.

Common Steps for All Models

FF Solution

  1. Remove add_inherited flag for all identified directories.
  2. Remove add_inherited flag for all identified separate executables and libraries
  3. Set no_execute flag on top dir
  4. Without add_inherited, the no_execute flag is not inherited and thus not applied to the identified dirs and separate executables

RC Solution

  1. Perform steps 1-5 from RC solution 2. Make a similar setup for library directories and files with another type 'Libraries'.
  2. Remove EXECUTE and MAP_EXEC rights to all types other than 'Executables' and 'Libraries' from all roles. For setup checking, remove the right for your Role Admin last and first try other roles.

ACL Solution

  1. Grant rights SEARCH and EXECUTE to group 0 ('Everyone') for all identified directories and files.
  2. If you need to READ_OPEN the files, e.g. libraries or scripts, add rights READ_OPEN and CLOSE.
  3. For filename completion in the shell, you need READ right, possibly also GET_STATUS_DATA or GET_PERMISSIONS_DATA.
  4. Remove right EXECUTE from the inheritance mask of the root dir / or from all entries in the default FD acl.
  5. If you have individual ACL entries at any directory or file other than the identified ones, revoke EXECUTE right from them. You can find all ACL entries with acl_tlist -r.
  6. As the SUPERVISOR right includes all other rights and can (usually) not be masked out, all subjects with SUPERVISOR still have full access. In the standard setup, only user 400 (Security Officer etc.) has this right to the FD default ACL (and thus to all files, fifos and directories).



Table of Contents: RSBAC Handbook
Back: Administration Examples