mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:57:45 +00:00
lsof: Fix some minor issues
Correct copyright year, fix a comment and add missing veil lock.
This commit is contained in:
parent
8d4d1c7457
commit
3d5abae17b
1 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2018-2020, Maciej Zygmanowski <sppmacd@pm.me>
|
* Copyright (c) 2020, Maciej Zygmanowski <sppmacd@pm.me>
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -88,10 +88,12 @@ int main(int argc, char* argv[])
|
||||||
|
|
||||||
// needed by ProcessStatisticsReader::get_all()
|
// needed by ProcessStatisticsReader::get_all()
|
||||||
if (unveil("/etc/passwd", "r") < 0) {
|
if (unveil("/etc/passwd", "r") < 0) {
|
||||||
perror("unveil /proc");
|
perror("unveil /etc/passwd");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unveil(nullptr, nullptr);
|
||||||
|
|
||||||
bool arg_all_processes { false };
|
bool arg_all_processes { false };
|
||||||
int arg_fd { -1 };
|
int arg_fd { -1 };
|
||||||
const char* arg_uid { nullptr };
|
const char* arg_uid { nullptr };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue