summaryrefslogtreecommitdiff
path: root/Applications/SystemMonitor
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2020-01-11 21:17:39 +0100
committerAndreas Kling <awesomekling@gmail.com>2020-01-11 21:33:12 +0100
commitf848faeec8b3764532f0d1628beb2ee3f581bf0c (patch)
treef74f054d0666ad0e705ee02ea7d0a049b2857ae4 /Applications/SystemMonitor
parentec1ae37f695ab4f8e20c1fdfee977b4b88430f27 (diff)
downloadserenity-f848faeec8b3764532f0d1628beb2ee3f581bf0c.zip
SystemMonitor: Use pledge()
Diffstat (limited to 'Applications/SystemMonitor')
-rw-r--r--Applications/SystemMonitor/main.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Applications/SystemMonitor/main.cpp b/Applications/SystemMonitor/main.cpp
index ee863d9793..8ea6492273 100644
--- a/Applications/SystemMonitor/main.cpp
+++ b/Applications/SystemMonitor/main.cpp
@@ -49,8 +49,18 @@ static NonnullRefPtr<GWidget> build_graphs_tab();
int main(int argc, char** argv)
{
+ if (pledge("stdio shared_buffer rpath unix cpath fattr", nullptr) < 0) {
+ perror("pledge");
+ return 1;
+ }
+
GApplication app(argc, argv);
+ if (pledge("stdio shared_buffer rpath unix", nullptr) < 0) {
+ perror("pledge");
+ return 1;
+ }
+
auto keeper = GWidget::construct();
keeper->set_layout(make<GBoxLayout>(Orientation::Vertical));
keeper->set_fill_with_background_color(true);