mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 13:58:22 +00:00
Turned the uid=0 check back on.
This commit is contained in:
parent
39adc91bbb
commit
be64d6bed4
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user