Bug 922030

Summary: Turn on symlink protections in sysctl
Product: [Fedora] Fedora Reporter: Daniel Walsh <dwalsh>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: fweimer, iarlyy, jonathan, lnykryn, notting, plautrba, rvokal, vpavlin
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: initscripts-9.45-1.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-15 14:41:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Do what dan says. none

Description Daniel Walsh 2013-03-15 12:35:21 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Daniel Walsh 2013-03-15 13:00:02 UTC
Could you add these lines

fs.protected_hardlinks = 1
fs.protected_symlinks = 1

to 

/usr/lib/sysctl.d/00-system.conf

http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=800179c9b8a1e796e441674776d11cd4c05d61d7

Explains these restrictions.

Comment 2 Josh Boyer 2013-03-15 13:03:41 UTC
Created attachment 710662 [details]
Do what dan says.

Now with patch

Comment 3 Lukáš Nykrýn 2013-03-15 13:11:28 UTC
Applied in upstream repository. Thanks.

Comment 4 Kay Sievers 2013-03-15 14:58:58 UTC
Let's move that setting and the entire file to upstream systemd, we should
make that general Linux default and not only put it into a fedora-only
package.

Comment 5 Bill Nottingham 2013-03-15 19:10:34 UTC
Hm.

Some of those settings I could see being the general Linux default, but at least in downstream distributions we do things like changing the defaults of shmmax/shmall.