- Since official KSU has exposed kernel_umount API and provided meta module for handling mount operations, susfs can finally handover try_umount and auto add_try_umount to KSU and its meta module
- Synced with upstream, see e1e58ed737
Co-authored-by: simonpunk <simonpunk2016@gmail.com>
24 lines
513 B
C
24 lines
513 B
C
#ifndef __KSU_H_KERNEL_UMOUNT
|
|
#define __KSU_H_KERNEL_UMOUNT
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/list.h>
|
|
#include <linux/rwsem.h>
|
|
|
|
void ksu_kernel_umount_init(void);
|
|
void ksu_kernel_umount_exit(void);
|
|
|
|
// Handler function to be called from setresuid hook
|
|
int ksu_handle_umount(uid_t old_uid, uid_t new_uid);
|
|
|
|
// for the umount list
|
|
struct mount_entry {
|
|
char *umountable;
|
|
unsigned int flags;
|
|
struct list_head list;
|
|
};
|
|
extern struct list_head mount_list;
|
|
extern struct rw_semaphore mount_list_lock;
|
|
|
|
#endif
|