Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-13-2008, 12:04 PM
|
#1
|
|
Member
Registered: May 2008
Location: France
Distribution: Debian / Fedora / Gentoo
Posts: 178
Rep:
|
Installing ACL with GrSecurity
Hi all,
I am installing GrSecurity on a test server, and I would like to enable RBAC ACLs.
I patched the vanillia kernel and set up GrSecurity in medium mode.
Now, is my kernel able to handle RBAC ACL with gradm ?
Do I have to activate something on my kernel ?
Or can I already write and deploy ACL with gradm ?
Thanks
|
|
|
|
09-16-2008, 01:27 AM
|
#2
|
|
Moderator
Registered: May 2001
Posts: 24,970
|
Quote:
Originally Posted by PlatinumX
Now, is my kernel able to handle RBAC ACL with gradm ?
|
Yes.
Quote:
Originally Posted by PlatinumX
can I already write and deploy ACL with gradm ?
|
Looks like me you could do with reading some GRSecurity docs?..
|
|
|
|
09-18-2008, 12:28 PM
|
#3
|
|
Member
Registered: May 2008
Location: France
Distribution: Debian / Fedora / Gentoo
Posts: 178
Original Poster
Rep:
|
Quote:
|
you could do with reading some GRSecurity docs?..
|
This is why I asked the question: through all documents I read, I never saw where to enable RBAC in the kernel.
|
|
|
|
09-18-2008, 05:19 PM
|
#4
|
|
Moderator
Registered: May 2001
Posts: 24,970
|
Quote:
Originally Posted by PlatinumX
I never saw where to enable RBAC in the kernel.
|
Do you mean kernel config (under look under GRSecurity) or building rulesets (learning mode, grtool et cetera)?
|
|
|
|
09-25-2008, 04:00 PM
|
#5
|
|
Member
Registered: May 2008
Location: France
Distribution: Debian / Fedora / Gentoo
Posts: 178
Original Poster
Rep:
|
Quote:
|
Do you mean kernel config (under look under GRSecurity) or building rulesets (learning mode, grtool et cetera)?
|
I thought of kernel config, don't see where it is...
|
|
|
|
10-28-2008, 11:05 AM
|
#6
|
|
Member
Registered: May 2008
Location: France
Distribution: Debian / Fedora / Gentoo
Posts: 178
Original Poster
Rep:
|
I found it.
For info it is these options that enable RBAC:
# CONFIG_GRKERNSEC_ACL_HIDEKERN is not set
CONFIG_GRKERNSEC_ACL_MAXTRIES=3
CONFIG_GRKERNSEC_ACL_TIMEOUT=30
|
|
|
|
10-28-2008, 12:02 PM
|
#7
|
|
Member
Registered: May 2007
Location: Chas, SC
Distribution: slackware, gentoo, fedora, LFS, sidewinder G2, solaris, FreeBSD, RHEL, SUSE, Backtrack
Posts: 424
Rep:
|
You should be able to set that as a option in make menuconfig
Once it is enabled
run gradm -P admin to set the admin password
use gradm -F -L /etc/grsec/learning.log to put it in learning mode
let that run for a few days and don't do anything that you wouldn't want root to be able to do. IE add users, del users, stop/start services, etc
Anything that you do during this time will be added to the policy so make sure you do things like browser the web(if thats what you want to do with the box) or dns lookups, or any other user stuff you want to do.
Then
run gradm -F -L /etc/grsec/learning.log -O /etc/grsec/learning.policy
edit the learning.policy by hand to fix anything that you might or might not want
then
mv learning.policy to policy
gradm -a admin
then gradm -E to enable the policy
|
|
|
|
10-31-2008, 09:52 AM
|
#8
|
|
Member
Registered: May 2008
Location: France
Distribution: Debian / Fedora / Gentoo
Posts: 178
Original Poster
Rep:
|
Thanks for all these infos.
I searched on Internet but I did not find any clear documentation explaning the syntax of the rules used by gradm.
For exemple, I don't want my private SSL key used by openSSH (sshd identity) to be readable by root.
I want it to be readable only by ssh identity.
You know the syntax to use to implement this control ?
Thanks
|
|
|
|
10-31-2008, 10:38 AM
|
#9
|
|
Member
Registered: May 2007
Location: Chas, SC
Distribution: slackware, gentoo, fedora, LFS, sidewinder G2, solaris, FreeBSD, RHEL, SUSE, Backtrack
Posts: 424
Rep:
|
Quote:
Originally Posted by PlatinumX
Thanks for all these infos.
I searched on Internet but I did not find any clear documentation explaning the syntax of the rules used by gradm.
For exemple, I don't want my private SSL key used by openSSH (sshd identity) to be readable by root.
I want it to be readable only by ssh identity.
You know the syntax to use to implement this control ?
Thanks
|
That would be done in the policy not by gradm. You would have to find out what ssh identity needs access to an tune a policy for that setup.
There is a document on the grsecuity site that talks about writing policies. I will try to find it and post it when i get a chance
|
|
|
|
11-03-2008, 11:12 AM
|
#10
|
|
Member
Registered: May 2008
Location: France
Distribution: Debian / Fedora / Gentoo
Posts: 178
Original Poster
Rep:
|
Thanks, I am also looking to find docs
|
|
|
|
11-05-2008, 09:36 PM
|
#11
|
|
Member
Registered: May 2007
Location: Chas, SC
Distribution: slackware, gentoo, fedora, LFS, sidewinder G2, solaris, FreeBSD, RHEL, SUSE, Backtrack
Posts: 424
Rep:
|
http://grsecurity.net/gracldoc.pdf
there is the document that helps with understanding the policies and how they work.
|
|
|
|
11-06-2008, 07:09 AM
|
#12
|
|
Member
Registered: May 2008
Location: France
Distribution: Debian / Fedora / Gentoo
Posts: 178
Original Poster
Rep:
|
Cool =)
I will work with this doc.
When my policy to protect certificates is ready, i will publish it
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:24 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|