TOMOYO: Remove unused parameter.
TOMOYO 2.2.0 does not check argv[] and envp[] upon execve(). We don't need to pass "struct tomoyo_page_buffer". Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Signed-off-by: James Morris <jmorris@namei.org>
This commit is contained in:
parent
e0a94c2a63
commit
bcb86975db
@ -721,7 +721,7 @@ int tomoyo_find_next_domain(struct linux_binprm *bprm,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Check execute permission. */
|
/* Check execute permission. */
|
||||||
retval = tomoyo_check_exec_perm(old_domain, &r, tmp);
|
retval = tomoyo_check_exec_perm(old_domain, &r);
|
||||||
if (retval < 0)
|
if (retval < 0)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
|
@ -1012,13 +1012,11 @@ int tomoyo_check_file_perm(struct tomoyo_domain_info *domain,
|
|||||||
*
|
*
|
||||||
* @domain: Pointer to "struct tomoyo_domain_info".
|
* @domain: Pointer to "struct tomoyo_domain_info".
|
||||||
* @filename: Check permission for "execute".
|
* @filename: Check permission for "execute".
|
||||||
* @tmp: Buffer for temporary use.
|
|
||||||
*
|
*
|
||||||
* Returns 0 on success, negativevalue otherwise.
|
* Returns 0 on success, negativevalue otherwise.
|
||||||
*/
|
*/
|
||||||
int tomoyo_check_exec_perm(struct tomoyo_domain_info *domain,
|
int tomoyo_check_exec_perm(struct tomoyo_domain_info *domain,
|
||||||
const struct tomoyo_path_info *filename,
|
const struct tomoyo_path_info *filename)
|
||||||
struct tomoyo_page_buffer *tmp)
|
|
||||||
{
|
{
|
||||||
const u8 mode = tomoyo_check_flags(domain, TOMOYO_MAC_FOR_FILE);
|
const u8 mode = tomoyo_check_flags(domain, TOMOYO_MAC_FOR_FILE);
|
||||||
|
|
||||||
|
@ -17,13 +17,11 @@ struct path;
|
|||||||
struct inode;
|
struct inode;
|
||||||
struct linux_binprm;
|
struct linux_binprm;
|
||||||
struct pt_regs;
|
struct pt_regs;
|
||||||
struct tomoyo_page_buffer;
|
|
||||||
|
|
||||||
int tomoyo_check_file_perm(struct tomoyo_domain_info *domain,
|
int tomoyo_check_file_perm(struct tomoyo_domain_info *domain,
|
||||||
const char *filename, const u8 perm);
|
const char *filename, const u8 perm);
|
||||||
int tomoyo_check_exec_perm(struct tomoyo_domain_info *domain,
|
int tomoyo_check_exec_perm(struct tomoyo_domain_info *domain,
|
||||||
const struct tomoyo_path_info *filename,
|
const struct tomoyo_path_info *filename);
|
||||||
struct tomoyo_page_buffer *buf);
|
|
||||||
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);
|
struct path *path, const int flag);
|
||||||
int tomoyo_check_1path_perm(struct tomoyo_domain_info *domain,
|
int tomoyo_check_1path_perm(struct tomoyo_domain_info *domain,
|
||||||
|
Loading…
Reference in New Issue
Block a user