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