forked from luck/tmp_suning_uos_patched
tomoyo: constify assorted struct path *
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
928e1ebfb5
commit
e6641eddf0
|
@ -957,7 +957,7 @@ const struct tomoyo_path_info *tomoyo_get_name(const char *name);
|
||||||
const struct tomoyo_path_info *tomoyo_path_matches_group
|
const struct tomoyo_path_info *tomoyo_path_matches_group
|
||||||
(const struct tomoyo_path_info *pathname, const struct tomoyo_group *group);
|
(const struct tomoyo_path_info *pathname, const struct tomoyo_group *group);
|
||||||
int tomoyo_check_open_permission(struct tomoyo_domain_info *domain,
|
int tomoyo_check_open_permission(struct tomoyo_domain_info *domain,
|
||||||
struct path *path, const int flag);
|
const struct path *path, const int flag);
|
||||||
void tomoyo_close_control(struct tomoyo_io_buffer *head);
|
void tomoyo_close_control(struct tomoyo_io_buffer *head);
|
||||||
int tomoyo_env_perm(struct tomoyo_request_info *r, const char *env);
|
int tomoyo_env_perm(struct tomoyo_request_info *r, const char *env);
|
||||||
int tomoyo_execute_permission(struct tomoyo_request_info *r,
|
int tomoyo_execute_permission(struct tomoyo_request_info *r,
|
||||||
|
@ -968,15 +968,15 @@ int tomoyo_get_mode(const struct tomoyo_policy_namespace *ns, const u8 profile,
|
||||||
int tomoyo_init_request_info(struct tomoyo_request_info *r,
|
int tomoyo_init_request_info(struct tomoyo_request_info *r,
|
||||||
struct tomoyo_domain_info *domain,
|
struct tomoyo_domain_info *domain,
|
||||||
const u8 index);
|
const u8 index);
|
||||||
int tomoyo_mkdev_perm(const u8 operation, struct path *path,
|
int tomoyo_mkdev_perm(const u8 operation, const struct path *path,
|
||||||
const unsigned int mode, unsigned int dev);
|
const unsigned int mode, unsigned int dev);
|
||||||
int tomoyo_mount_permission(const char *dev_name, struct path *path,
|
int tomoyo_mount_permission(const char *dev_name, const struct path *path,
|
||||||
const char *type, unsigned long flags,
|
const char *type, unsigned long flags,
|
||||||
void *data_page);
|
void *data_page);
|
||||||
int tomoyo_open_control(const u8 type, struct file *file);
|
int tomoyo_open_control(const u8 type, struct file *file);
|
||||||
int tomoyo_path2_perm(const u8 operation, struct path *path1,
|
int tomoyo_path2_perm(const u8 operation, const struct path *path1,
|
||||||
struct path *path2);
|
const struct path *path2);
|
||||||
int tomoyo_path_number_perm(const u8 operation, struct path *path,
|
int tomoyo_path_number_perm(const u8 operation, const struct path *path,
|
||||||
unsigned long number);
|
unsigned long number);
|
||||||
int tomoyo_path_perm(const u8 operation, const struct path *path,
|
int tomoyo_path_perm(const u8 operation, const struct path *path,
|
||||||
const char *target);
|
const char *target);
|
||||||
|
|
|
@ -687,7 +687,7 @@ static int tomoyo_update_path_number_acl(const u8 perm,
|
||||||
*
|
*
|
||||||
* Returns 0 on success, negative value otherwise.
|
* Returns 0 on success, negative value otherwise.
|
||||||
*/
|
*/
|
||||||
int tomoyo_path_number_perm(const u8 type, struct path *path,
|
int tomoyo_path_number_perm(const u8 type, const struct path *path,
|
||||||
unsigned long number)
|
unsigned long number)
|
||||||
{
|
{
|
||||||
struct tomoyo_request_info r;
|
struct tomoyo_request_info r;
|
||||||
|
@ -733,7 +733,7 @@ int tomoyo_path_number_perm(const u8 type, struct path *path,
|
||||||
* Returns 0 on success, negative value otherwise.
|
* Returns 0 on success, negative value otherwise.
|
||||||
*/
|
*/
|
||||||
int tomoyo_check_open_permission(struct tomoyo_domain_info *domain,
|
int tomoyo_check_open_permission(struct tomoyo_domain_info *domain,
|
||||||
struct path *path, const int flag)
|
const struct path *path, const int flag)
|
||||||
{
|
{
|
||||||
const u8 acc_mode = ACC_MODE(flag);
|
const u8 acc_mode = ACC_MODE(flag);
|
||||||
int error = 0;
|
int error = 0;
|
||||||
|
@ -838,7 +838,7 @@ int tomoyo_path_perm(const u8 operation, const struct path *path, const char *ta
|
||||||
*
|
*
|
||||||
* Returns 0 on success, negative value otherwise.
|
* Returns 0 on success, negative value otherwise.
|
||||||
*/
|
*/
|
||||||
int tomoyo_mkdev_perm(const u8 operation, struct path *path,
|
int tomoyo_mkdev_perm(const u8 operation, const struct path *path,
|
||||||
const unsigned int mode, unsigned int dev)
|
const unsigned int mode, unsigned int dev)
|
||||||
{
|
{
|
||||||
struct tomoyo_request_info r;
|
struct tomoyo_request_info r;
|
||||||
|
@ -882,8 +882,8 @@ int tomoyo_mkdev_perm(const u8 operation, struct path *path,
|
||||||
*
|
*
|
||||||
* Returns 0 on success, negative value otherwise.
|
* Returns 0 on success, negative value otherwise.
|
||||||
*/
|
*/
|
||||||
int tomoyo_path2_perm(const u8 operation, struct path *path1,
|
int tomoyo_path2_perm(const u8 operation, const struct path *path1,
|
||||||
struct path *path2)
|
const struct path *path2)
|
||||||
{
|
{
|
||||||
int error = -ENOMEM;
|
int error = -ENOMEM;
|
||||||
struct tomoyo_path_info buf1;
|
struct tomoyo_path_info buf1;
|
||||||
|
|
|
@ -73,7 +73,7 @@ static bool tomoyo_check_mount_acl(struct tomoyo_request_info *r,
|
||||||
*/
|
*/
|
||||||
static int tomoyo_mount_acl(struct tomoyo_request_info *r,
|
static int tomoyo_mount_acl(struct tomoyo_request_info *r,
|
||||||
const char *dev_name,
|
const char *dev_name,
|
||||||
struct path *dir, const char *type,
|
const struct path *dir, const char *type,
|
||||||
unsigned long flags)
|
unsigned long flags)
|
||||||
{
|
{
|
||||||
struct tomoyo_obj_info obj = { };
|
struct tomoyo_obj_info obj = { };
|
||||||
|
@ -184,7 +184,7 @@ static int tomoyo_mount_acl(struct tomoyo_request_info *r,
|
||||||
*
|
*
|
||||||
* Returns 0 on success, negative value otherwise.
|
* Returns 0 on success, negative value otherwise.
|
||||||
*/
|
*/
|
||||||
int tomoyo_mount_permission(const char *dev_name, struct path *path,
|
int tomoyo_mount_permission(const char *dev_name, const struct path *path,
|
||||||
const char *type, unsigned long flags,
|
const char *type, unsigned long flags,
|
||||||
void *data_page)
|
void *data_page)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user