mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-27 15:57:09 +00:00
Merge pull request #5497 from Rouzip/remove-redundant
agent: remove redundant checks
This commit is contained in:
commit
ab5f97759d
@ -327,7 +327,7 @@ impl Sandbox {
|
|||||||
// Reject non-file, symlinks and non-executable files
|
// Reject non-file, symlinks and non-executable files
|
||||||
if !entry.file_type()?.is_file()
|
if !entry.file_type()?.is_file()
|
||||||
|| entry.file_type()?.is_symlink()
|
|| entry.file_type()?.is_symlink()
|
||||||
|| entry.metadata()?.permissions().mode() & 0o777 & 0o111 == 0
|
|| entry.metadata()?.permissions().mode() & 0o111 == 0
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user