1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 13:37:44 +00:00

Kernel: Rename UnveilState to VeilState

This commit is contained in:
Andreas Kling 2020-01-21 19:28:29 +01:00
parent 66598f60fe
commit 30ad7953ca
4 changed files with 16 additions and 16 deletions

View file

@ -822,14 +822,14 @@ Optional<KBuffer> procfs$all(InodeIdentifier)
process_object.add("pledge", pledge_builder.to_string());
switch (process.unveil_state()) {
case UnveilState::None:
switch (process.veil_state()) {
case VeilState::None:
process_object.add("veil", "None");
break;
case UnveilState::VeilDropped:
case VeilState::Dropped:
process_object.add("veil", "Dropped");
break;
case UnveilState::VeilLocked:
case VeilState::Locked:
process_object.add("veil", "Locked");
break;
}

View file

@ -719,7 +719,7 @@ const UnveiledPath* VFS::find_matching_unveiled_path(StringView path)
KResult VFS::validate_path_against_process_veil(StringView path, int options)
{
if (current->process().unveil_state() == UnveilState::None)
if (current->process().veil_state() == VeilState::None)
return KSuccess;
// FIXME: Figure out a nicer way to do this.