- 论坛徽章:
- 0
|
360 /*
361 * Reboot system call: for obvious reasons only root may call it,
362 * and even root needs to set up some magic numbers in the registers
363 * so that some mistake won't make this reboot the whole machine.
364 * You can also set the meaning of the ctrl-alt-del-key here.
365 *
366 * reboot doesn't sync: do that yourself before calling this.
367 */
368 asmlinkage long sys_reboot(int magic1, int magic2, unsigned int cmd, void __user * arg)
369 {
370 char buffer[256];
371
372 /* We only trust the superuser with rebooting the system. */
373 if (!capable(CAP_SYS_BOOT))
374 return -EPERM;
我不知道你在反对我的说法之前能不能仔细考察一下。 |
|