Linux Kernel Procfs Guide | ||
---|---|---|
<<< Previous | Tips and tricks | Next >>> |
Sometimes it is useful to change the mode and/or ownership of a procfs entry. Here is an example that shows how to achieve that:
struct proc_dir_entry* entry; entry->mode = S_IWUSR |S_IRUSR | S_IRGRP | S_IROTH; entry->uid = 0; entry->gid = 100; |
<<< Previous | Home | Next >>> |
Modules | Up | Example |