mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-02 07:15:18 +00:00
Turned the uid=0 check back on.
This commit is contained in:
@@ -118,14 +118,14 @@ bool AppArmorProfileTool::OnInit()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// No sense in letting them any further if they aren't root
|
// No sense in letting them any further if they aren't root
|
||||||
// if (geteuid() != 0) {
|
if (geteuid() != 0) {
|
||||||
// wxMessageDialog *dlg = new wxMessageDialog(NULL,
|
wxMessageDialog *dlg = new wxMessageDialog(NULL,
|
||||||
// _T("You must be root to run this program."), _T("Error"),
|
_T("You must be root to run this program."), _T("Error"),
|
||||||
// wxOK|wxICON_ERROR);
|
wxOK|wxICON_ERROR);
|
||||||
// dlg->ShowModal();
|
dlg->ShowModal();
|
||||||
// dlg->Destroy();
|
dlg->Destroy();
|
||||||
// return FALSE;
|
return FALSE;
|
||||||
// }
|
}
|
||||||
|
|
||||||
frame = new ProfileToolFrame(_("AppArmor Profile Editor" ),
|
frame = new ProfileToolFrame(_("AppArmor Profile Editor" ),
|
||||||
wxPoint(50,50),
|
wxPoint(50,50),
|
||||||
|
Reference in New Issue
Block a user