From be64d6bed457f5e19f4dd0cf030c172275484d9c Mon Sep 17 00:00:00 2001 From: Matt Barringer Date: Sat, 5 Aug 2006 21:05:25 +0000 Subject: [PATCH] Turned the uid=0 check back on. --- management/profile-editor/src/profileeditor.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/management/profile-editor/src/profileeditor.cpp b/management/profile-editor/src/profileeditor.cpp index 5446581ca..d8af73b58 100644 --- a/management/profile-editor/src/profileeditor.cpp +++ b/management/profile-editor/src/profileeditor.cpp @@ -118,14 +118,14 @@ bool AppArmorProfileTool::OnInit() } // No sense in letting them any further if they aren't root -// if (geteuid() != 0) { -// wxMessageDialog *dlg = new wxMessageDialog(NULL, -// _T("You must be root to run this program."), _T("Error"), -// wxOK|wxICON_ERROR); -// dlg->ShowModal(); -// dlg->Destroy(); -// return FALSE; -// } + if (geteuid() != 0) { + wxMessageDialog *dlg = new wxMessageDialog(NULL, + _T("You must be root to run this program."), _T("Error"), + wxOK|wxICON_ERROR); + dlg->ShowModal(); + dlg->Destroy(); + return FALSE; + } frame = new ProfileToolFrame(_("AppArmor Profile Editor" ), wxPoint(50,50),