mirror of
https://github.com/openharmony/kernel_linux_common_modules.git
synced 2026-08-26 17:16:37 -04:00
modify dec file api return error code.
Signed-off-by: ligongshaospace <ligongshao2@huawei.com>
This commit is contained in:
@@ -85,7 +85,7 @@ int dec_rule_query(struct path_tree_params *params)
|
||||
|
||||
/* Perform actual permission check against path tree */
|
||||
if (!dec_path_tree_query(tokenid, path, mode, is_persist)) {
|
||||
ret = -EACCES;
|
||||
ret = -EPERM;
|
||||
}
|
||||
|
||||
if (ret) {
|
||||
|
||||
Reference in New Issue
Block a user