home
=>  Releases

Current version
Git/Latestdiff: 1.5.6

Latest Snapshots
Produced after each commit or rebase to new upstream version

GIT
RSBAC source code, can be unstable sometimes

=>  Events

No events planned

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
home [2013/09/01 21:37] – (old revision restored) 127.0.0.1home [2024/10/29 09:22] (current) – New request types GET_XATTR and MODIFY_XATTR on FD targets ao
Line 1: Line 1:
-====== Yet Another Way To Configure DAZ ======+== New request types GET_XATTR and MODIFY_XATTR on FD targets == 
 +//Tuesday, 29/Oct/2024//
  
 +The system call families getxattr() and setxattr() used to be intercepted with requests GET_PERMISSIONS_DATA and MODIFY_PERMISSIONS_DATA. Since extended attributes do much more than Linux access control with ACLs, we needed a way to distinguish these types of access.
  
-One morning, after drinking my first cup of coffee at this day I decided to try DAZ. In handbook appeared that was required to run as rootbut with the strength given by my breakfast I decidednot I will notHere you have the result:+I decided to introduce the new request types GET_XATTR and MODIFY_XATTR for themvalid for all FD targets. The changes are in the kernel Git repos for 6.66.1, 5.15 and 5.10 as well as in the rsbac-admin repo for administration. Older kernels remain unchanged.
  
-===== Preparation =====+== RSBAC stable with kernel 6.6 == 
 +//Wednesday, 26/Jun/2024//
  
-I'm one hardened gentoo user so I decided emerge clamav (in case you weren't you must be sure that your clamav is not compiled with --disable-clamuko)Into its configuration file (/etc/clamd.conf) I set this options in  (one of them, the interesting one):+RSBAC with kernel 6.6 is now recommendedIt has been running very well for months.
  
-  User clamav+== RSBAC for kernel 6.6 == 
 +//Thursday, 11/Jan/2024//
  
-__//**UM RELATED STUFF**//__+RSBAC has been ported successfully to LTS kernel 6.6. Internal kernel changes to the Linux caps structure required new on-disk versions of all RSBAC lists holding cap vectors.
  
-After setting up UM clamav user properly with (as secoff or bofh in my system):+I took the chance to default CONFIG_RSBAC_MOVETO to yes with 6.6 and auto-adjust RC and ACL FD lists with new versions, too. Existing WRITE right to FD targets gets amended with MOVETO during list upgrade to avoid unexpected behaviour.
  
-    bofh@orion~$rsbac_useradd -m -r -P -i 20 -d /adm/clamav -g 700 -u 700  +The automatic list version upgrades mean that going back to previous kernels might show invalid lists, you need to boot with rsbac_list_recover kernel parameter and set cap related and RC and ACL FD values again.
- The user was added with its own password by separation of duties concern.+
  
-I proceed to configure AUTH properly:+In my tests, 6.6 seems to be running pretty well, please give it a try and report. Patches are at https://download.rsbac.org/latestdiff/6.6/
  
-__//**AUTH RELATED STUFF**//__+== RSBAC very stable with kernel 6.1 == 
 +//Wednesday, 04/Oct/2023//
  
-   bofh@orion~$auth_set_cap FD add /usr/sbin/clamd 0/700 +Hi folks,
-   bofh@orion~$auth_set_cap -e FD add /usr/sbin/clamd 0/700 +
-   bofh@orion~$auth_set_cap -f FD add /usr/sbin/clamd 0/700+
  
-Above commands with -e and -f flags are only required if you have CONFIG_RSBAC_AUTH_DAC_OWNER in you kernel config if not omit them+just a quick note that kernel 6.1 has been running very well with RSBAC for months now, I recommend switching to 6.1.
  
-Other question you have to keep in mind is that if you enabled CONFIG_RSBAC_AUTH_GROUP you have to add the AUTH capabilities to its group (-G -E -F flags to auth_set_cap).+As usual, you get all the code at https://download.rsbac.org/latestdiff/ or through Git at git.rsbac.org/, e.g. git.rsbac.org/linux-6.1.y
  
-And then I start granting clamd the privileges required to work (in capabilities): 
  
-__//**CAP RELATED STUFF**//__+== RSBAC 1.5.6 for kernel 6.1 == 
 +//Wednesday, 15/Feb/2023//
  
-In my testsclamd needs CHOWN DAC_READ_SEARCH FOWNER SETGID and SETUID as minimal capabilities. So I grant them as minimal caps: +Hi folks,
-   +
-  bofh@orion~$attr_set_file_dir FD /usr/sbin/clamd min_caps CHOWN DAC_READ_SEARCH FOWNER SETGID SETUID+
  
-and of course as I granted minimal caps forbid passing LD environment variables+RSBAC has been ported to kernel 6.1 at 5.15 state. Seems to be running fine on my test system, but please test yourself and report to the mailing list or to the bug tracker. 
 + 
 +You get all the code at https://download.rsbac.org/latestdiff/ or through Git at git.rsbac.org/, e.g. git.rsbac.org/linux-6.1.y 
 + 
 +RSBAC has been running very well with kernel series 5.10 for a long time, so please consider 5.10 to be the best choice for now. 
 + 
 + 
 +== RSBAC 1.5.6 for kernel 5.15 == 
 +//Tuesday, 09/Nov/2021// 
 + 
 +Hi folks, 
 + 
 +just a quick notice that RSBAC has been ported to kernel 5.15 at 5.10 state. Seems to be running fine on my test system, but please test yourself and report here or to the bug tracker. 
 + 
 +In 1.5.6, found in 5.15, 5.10 and rsbac-admin Git repos, we have a new IPC target memfd, which lets memfd access be treated as IPC for easier administration. 
 + 
 +You get all the code at https://download.rsbac.org/latestdiff/ or through Git at git.rsbac.org/, e.g. git.rsbac.org/linux-5.15.y 
 + 
 +RSBAC has been running very well with kernel series 5.10 for a long time, so please consider 5.10 to be the best choice for now. 
 + 
 + 
 +== RSBAC for kernel 5.10 == 
 +//Thursday, 31/Dec/2020// 
 + 
 +RSBAC is now available for kernel 5.10. So far it seems to work 
 +fine here. Please test and report bugs to the bugtracker at 
 +https://bugtracker.rsbac.org or to this list. 
 + 
 +As usual, you find the latest patches at 
 +https://download.rsbac.org/latestdiff/5.10/ 
 +and the Git repo at 
 +https://git.rsbac.org/cgi-bin/gitweb.cgi?p=linux-5.10.y.git;a=summary 
 + 
 +As we are heading into 2021, we wish all of you a good and successful new 
 +year. RSBAC development will turn 25 years old in 2021, maybe a good 
 +time for some celebration and reflection. 
 + 
 +== Decision modules PAX and DAZ removed == 
 +//Wednesday, 22/Apr/2020// 
 + 
 +PAX and DAZ modules have been removed in latest kernel 5.4 and 
 +rsbac-admin git repos. RSBAC version is now 1.5.5 to reflect that change. 
 + 
 +== Deprecate decision modules PAX and DAZ == 
 +//Tuesday, 31/Mar/2020// 
 + 
 +PAX and DAZ support are now marked as deprecated. PaX has not been freely available for years and the Dazuko interface seems obsolete, too. For on-access malware scanning, recommend the UDF module. 
 + 
 +If noone protests within the next few weeks, am going to remove the related code. 
 + 
 +== RSBAC for kernel 5.4 == 
 +//Wednesday, 27/Nov/2019// 
 + 
 +RSBAC has been ported to kernel 5.4. Please test and report bugs to the bugtracker at https://bugtracker.rsbac.org or to this list. 
 + 
 +As usual, you find the latest patches at https://download.rsbac.org/latestdiff/5.4/ and the Git repo at https://git.rsbac.org/cgi-bin/gitweb.cgi?p=linux-5.4.y.git;a=summary 
 + 
 +== New DokuWiki version == 
 +//Monday, 14/Jan/2019// 
 + 
 +The RSBAC Website DokuWiki version has been updated today. 
 + 
 +Please test and report any problems! 
 + 
 +== RSBAC ported to 4.19 == 
 +//Tuesday, 30/Oct/2018// 
 + 
 +Latest RSBAC for kernel 4.19 is now available in Git at 
 +[[git://git.rsbac.org/linux-4.19.y.git]] 
 + 
 +Diffs will start showing up at [[https://download.rsbac.org/latestdiff/]] 
 +after release of 4.19.1. 
 + 
 +Please test and report any problems! 
 + 
 +As a side node, I will start removing old unsupported Git repositories, 
 +EOL at upstream and unchanged for > 10 months, from the server soon. 
 +Please tell me, if you still need them. 
 + 
 +== Latest RSBAC patches == 
 +//Wednesday, 11/April/2018// 
 + 
 +Even though this page has not been updated for a long time, RSBAC is still under constant development and maintenance. Latest code has always been available through git. 
 + 
 +From now on, you can also find the latest RSBAC patches for the maintained kernel versions in the [[@dl.php?file=latestdiff/|latestdiff]] download dir. 
 + 
 +== RSBAC 1.5.0 == 
 +//Tuesday, 13/September/2016// 
 + 
 +[[:download|RSBAC 1.5.0]] has been released for kernel 4.4.20. Please drop us a note if you need support for other kernel versions. 
 + 
 +The most important changes since 1.4.9 are the port to longterm kernel 4.4 and the new feature "Prevent memory write and execute (RSBAC mprotect)" to prevent against process memory segments being both writable and executable. This new hardening feature made me choose a new middle version number. 
 + 
 +The change lists are here: 
 +Kernel changes: 
 +http://www.rsbac.org/dl.php?file=code/1.5.0/changes-1.5.0.txt 
 + 
 +Admin tools changes: 
 +http://www.rsbac.org/dl.php?file=code/1.5.0/admin-changes-1.5.0.txt 
 + 
 +Please consider giving some feedback on the [[:contact|RSBAC mailing list]].
  
-  bofh@orion~$attr_set_file_dir FD /usr/sbin/clamd cap_ld_env 0 
-  
-___ to be continued... soon 
//
home.1378071444.txt.gz · Last modified: 2013/09/01 21:37 by 127.0.0.1

home.1378071444.txt.gz · Last modified: 2013/09/01 21:37 by 127.0.0.1
This website is kindly hosted by m-privacy