Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Technical question about permission access
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Fulgurance
Veteran
Veteran


Joined: 15 Feb 2017
Posts: 1260

PostPosted: Tue Mar 11, 2025 8:38 pm    Post subject: Technical question about permission access Reply with quote

Hi guys, I have a specific question .

For example when a command will be run, first the system will check if the user have the required access to run it, and then the program can access to the files if it is allowed.

So my question is: is it possible for example to run a program just before this right access check ? Basically I would like to code an additional security layer .

Is it possible to do this ?
_________________
My actual project: https://github.com/Fulgurance/ISM

Ingenius Software Manager is a tool to build and manage a Linux system from scratch.
It will able to manage a linux installation just with a given path to the futur root path
Back to top
View user's profile Send private message
sublogic
Guru
Guru


Joined: 21 Mar 2022
Posts: 322
Location: Pennsylvania, USA

PostPosted: Tue Mar 11, 2025 10:41 pm    Post subject: Reply with quote

Something along the lines of sys-apps/sandbox , perhaps? You can check the README file for ideas.
Code:
/usr/share/doc/sandbox-2.39/README.md.bz2

If sandbox doesn't meet all your needs, you'll have to write, test and debug a lot of low-level software...
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3550

PostPosted: Tue Mar 11, 2025 10:46 pm    Post subject: Reply with quote

Specific questions are the best kind of questions :lol:

No idea about that "running code before checking permissions on your program" part, but it seems to me that you're looking for stuff like selinux or apparmor. Or, yes, sandbox, though userspace sandbox must be inferior to an in-kernel enforcer.
_________________
Make Computing Fun Again
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum