mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-14 21:42:19 +00:00
Utilities: Remove no-op calls to unveil and pledge
This commit is contained in:
parent
8419a5f60f
commit
1ce10d6b39
Notes:
github-actions[bot]
2024-10-18 16:17:15 +00:00
Author: https://github.com/trflynn89
Commit: 1ce10d6b39
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1859
4 changed files with 0 additions and 14 deletions
|
@ -8,7 +8,6 @@
|
||||||
#include <AK/Types.h>
|
#include <AK/Types.h>
|
||||||
#include <LibCore/ArgsParser.h>
|
#include <LibCore/ArgsParser.h>
|
||||||
#include <LibCore/ElapsedTimer.h>
|
#include <LibCore/ElapsedTimer.h>
|
||||||
#include <LibCore/System.h>
|
|
||||||
#include <LibFileSystem/FileSystem.h>
|
#include <LibFileSystem/FileSystem.h>
|
||||||
#include <LibMain/Main.h>
|
#include <LibMain/Main.h>
|
||||||
#include <LibMedia/Audio/Loader.h>
|
#include <LibMedia/Audio/Loader.h>
|
||||||
|
@ -28,10 +27,6 @@ ErrorOr<int> serenity_main(Main::Arguments args)
|
||||||
args_parser.add_option(sample_count, "How many samples to load at maximum", "sample-count", 's', "samples");
|
args_parser.add_option(sample_count, "How many samples to load at maximum", "sample-count", 's', "samples");
|
||||||
args_parser.parse(args);
|
args_parser.parse(args);
|
||||||
|
|
||||||
TRY(Core::System::unveil(TRY(FileSystem::absolute_path(path)), "r"sv));
|
|
||||||
TRY(Core::System::unveil(nullptr, nullptr));
|
|
||||||
TRY(Core::System::pledge("stdio recvfd rpath"));
|
|
||||||
|
|
||||||
auto maybe_loader = Audio::Loader::create(path);
|
auto maybe_loader = Audio::Loader::create(path);
|
||||||
if (maybe_loader.is_error()) {
|
if (maybe_loader.is_error()) {
|
||||||
warnln("Failed to load audio file: {}", maybe_loader.error().description);
|
warnln("Failed to load audio file: {}", maybe_loader.error().description);
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
#include <LibCore/ArgsParser.h>
|
#include <LibCore/ArgsParser.h>
|
||||||
#include <LibCore/ConfigFile.h>
|
#include <LibCore/ConfigFile.h>
|
||||||
#include <LibCore/StandardPaths.h>
|
#include <LibCore/StandardPaths.h>
|
||||||
#include <LibCore/System.h>
|
|
||||||
#include <LibJS/Bytecode/BasicBlock.h>
|
#include <LibJS/Bytecode/BasicBlock.h>
|
||||||
#include <LibJS/Bytecode/Generator.h>
|
#include <LibJS/Bytecode/Generator.h>
|
||||||
#include <LibJS/Bytecode/Interpreter.h>
|
#include <LibJS/Bytecode/Interpreter.h>
|
||||||
|
@ -528,8 +527,6 @@ private:
|
||||||
|
|
||||||
ErrorOr<int> serenity_main(Main::Arguments arguments)
|
ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||||
{
|
{
|
||||||
TRY(Core::System::pledge("stdio rpath wpath cpath tty sigaction map_fixed"));
|
|
||||||
|
|
||||||
bool gc_on_every_allocation = false;
|
bool gc_on_every_allocation = false;
|
||||||
bool disable_syntax_highlight = false;
|
bool disable_syntax_highlight = false;
|
||||||
bool disable_debug_printing = false;
|
bool disable_debug_printing = false;
|
||||||
|
|
|
@ -7,13 +7,10 @@
|
||||||
#include <LibCompress/Lzma.h>
|
#include <LibCompress/Lzma.h>
|
||||||
#include <LibCore/ArgsParser.h>
|
#include <LibCore/ArgsParser.h>
|
||||||
#include <LibCore/File.h>
|
#include <LibCore/File.h>
|
||||||
#include <LibCore/System.h>
|
|
||||||
#include <LibMain/Main.h>
|
#include <LibMain/Main.h>
|
||||||
|
|
||||||
ErrorOr<int> serenity_main(Main::Arguments arguments)
|
ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||||
{
|
{
|
||||||
TRY(Core::System::pledge("rpath stdio"));
|
|
||||||
|
|
||||||
StringView filename;
|
StringView filename;
|
||||||
|
|
||||||
Core::ArgsParser args_parser;
|
Core::ArgsParser args_parser;
|
||||||
|
|
|
@ -7,13 +7,10 @@
|
||||||
#include <LibCompress/Xz.h>
|
#include <LibCompress/Xz.h>
|
||||||
#include <LibCore/ArgsParser.h>
|
#include <LibCore/ArgsParser.h>
|
||||||
#include <LibCore/File.h>
|
#include <LibCore/File.h>
|
||||||
#include <LibCore/System.h>
|
|
||||||
#include <LibMain/Main.h>
|
#include <LibMain/Main.h>
|
||||||
|
|
||||||
ErrorOr<int> serenity_main(Main::Arguments arguments)
|
ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||||
{
|
{
|
||||||
TRY(Core::System::pledge("rpath stdio"));
|
|
||||||
|
|
||||||
StringView filename;
|
StringView filename;
|
||||||
|
|
||||||
Core::ArgsParser args_parser;
|
Core::ArgsParser args_parser;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue