LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-10-2017, 08:26 AM   #1
ronbarak
LQ Newbie
 
Registered: Nov 2004
Posts: 17

Rep: Reputation: 0
Question How to have access control for all users, including root, for R/W regular files, in Linux kernels newer than 2.6.35?


1. I have a Linux Security Module (LSM) on RedHat ES 5, kernel 2.6.18. The LSM implements access control for all users, including root, when they Read/Write regular files.
2. I'd like to implement the same functionality in CentOS 7, kernel 3.10.0.
3. However, since kernel 2.6.35, LSMs are no longer supported.

Any ideas how can I achieve {2}?
 
Old 08-10-2017, 11:40 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
are you looking for SElinux?
 
Old 08-10-2017, 03:37 PM   #3
ronbarak
LQ Newbie
 
Registered: Nov 2004
Posts: 17

Original Poster
Rep: Reputation: 0
SElinux is indeed a possibility.
I want to research if there's also a way to take the functionality encoded in the kernel 2.6.18 LSM, and transfer it to a 3.10.0 kernel.
 
Old 08-11-2017, 02:10 AM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
You just compile into the kernel the MACs you want to use. Then, you can use any of them. You can grep the config file for the running kernel to find out which models are included in the kernel.
 
  


Reply

Tags
centos, centos7, kernel module



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Logitech quickcam does not work with newer linux kernels proffi Linux - Hardware 4 11-08-2010 05:28 PM
[CentOS] Folders+Files Users Access Control List Remoz Linux - Server 1 02-24-2009 05:23 AM
All users gone including root bjojoi Debian 3 08-09-2005 04:00 AM
all users have access to root owned files sakatola Linux - Security 2 07-22-2005 12:45 AM
Giving regular users access to certain root-only commands slickrcbd Linux - Newbie 4 12-24-2003 07:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration