forked from landlock-lsm/rust-landlock
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
profile: Added comments and a finally functioning profile loader.
This first version is really basic. It just loads a profile based on the command name located in ~/.config/file_<cmd>.ll. The file format is also very basic, it is essentially just like dotenv files: a succession of environment variable declaration. The only thing "smart" about it for now is that it merges them before passing them to the sandboxer. Note: I included code in the comments much like for a normal crate. However, it seems like code in the comments of examples are not currently being executed anywhere: rust-lang/cargo#4508
- Loading branch information
1 parent
48e7de8
commit 1e21bde
Showing
2 changed files
with
155 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters