mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-02-03 21:54:25 +01:00
agent: remove redundant checks
Remove redundant checks for executable files. FIXes: #3730 Signed-off-by: Rouzip <1226015390@qq.com>
This commit is contained in:
@@ -327,7 +327,7 @@ impl Sandbox {
|
||||
// Reject non-file, symlinks and non-executable files
|
||||
if !entry.file_type()?.is_file()
|
||||
|| entry.file_type()?.is_symlink()
|
||||
|| entry.metadata()?.permissions().mode() & 0o777 & 0o111 == 0
|
||||
|| entry.metadata()?.permissions().mode() & 0o111 == 0
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user