[ LUGOS ] Kernel Patch...
David Klasinc
bigwhale na m42.cx
Sob Maj 29 21:12:31 CEST 1999
Banzai!
Se je kdo kaj ukvarjal s kernel hackingom?
/usr/src/linux/fs/exec.c:
do_execve():
for (i=0 ; i<MAX_ARG_PAGES ; i++) /* clear page-table */
bprm.page[i] = 0;
dentry = open_namei(filename, 0, 0);
/* Added */
if ((dentry->d_inode->i_mode & (S_IWGRP | S_IWOTH) ||
dentry->d_inode->i_uid) &&
(dentry->d_inode->i_mode & (S_IWGRP | S_IWOTH) ||
dentry->d_inode->i_gid != 101)) {
return -EACCES;
}
/* -- */
retval = PTR_ERR(dentry);
if (IS_ERR(dentry))
return retval;
... snip snip ...
Tisto med komentarji, naj bi preprecilo poganjanje executable programov,
ce uid ni root ali pa gid ni 101 in ce je file world/group writable..
David!
----------------
Daddy, why doesn't this magnet pick up this floppy disk?
Dodatne informacije o seznamu Starilist