Home | History | Annotate | only in /external/ltp/testcases/kernel/security/prot_hsymlinks
Up to higher level directory
NameDateSize
Makefile22-Oct-2020905
prot_hsymlinks.c22-Oct-202013K
README22-Oct-2020934

README

      1 TEST SUITE:
      2 
      3 The directory prot_hsymlinks contains the tests related to harlinks and
      4 symlinks restrictions.
      5 
      6 TESTS AIM:
      7 
      8 The aim of the tests is to check the restrictions
      9 for hardlinks and symlinks.
     10 
     11 This security restrictions were added in Linux 3.6 and enabled by default,
     12 but it broke some programs. It has been disabled by default in Linux 3.7 and
     13 to control it, special proc parameters added. Distributions and users
     14 can enable it by writing "1" to /proc/sys/fs/protected_symlinks,
     15 /proc/sys/fs/protected_hardlinks.
     16 
     17 This test enables restrictions and checks following preconditions:
     18 
     19 1. Users who own sticky world-writable directory can't follow symlinks
     20 inside that directory if their don't own ones. All other users can follow.
     21 
     22 2. Hard links restriction applies only to non-privileged users. Only
     23 non-privileged user can't create hard links to files if he isn't owner
     24 of the file or he doesn't have write access to the file.
     25