2
0
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:
Matt Barringer 2006-08-05 21:05:25 +00:00
parent 39adc91bbb
commit be64d6bed4

View File

@ -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),