Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set procfs file masks #94

Merged
merged 5 commits into from
Aug 13, 2024

Conversation

fischerling
Copy link
Contributor

Currently all entries in the proc file system report 0000 as mask.

Address this issue by using the mask member included in the procfs_file_t struct and setting it accordingly via the new function proc_entry_set_mask.

Additionally, use loops to create some entries removing code duplication.

Before

20240730_17h57m53s_grim

After

20240730_17h57m29s_grim

The procfs_file_t struct contains a mask member which was never
used.
Use the mask member in __procfs_stat and allow to set it using
proc_entry_set_mask via the contained procfs entry.
The directory /proc/ipc has the permissions r-xr-xr-x.
Set the permissions of all entries in /proc/ipc to r--r--r--.
Use a loop to create all entries removing code duplication.
Remove the duplicated code by using a loop to create the entries.
@Galfurian Galfurian merged commit 9deaca3 into mentos-team:develop Aug 13, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants