Is there a way to change a file's name in kernel? Can rename() be used in
AFAIK, you are really not supposed to do such things. Is it possible?Quote:> Is there a way to change a file's name in kernel? Can rename() be used in
> kernel thread?
> AFAIK, you are really not supposed to do such things. Is it possible?
> Maybe - vn_rename("old","new",UIO_SYSSPACE) might work, or it might
> make a horrible mess, and even if it worked today, it might stop working
> with the next kernel patch or new release.
I run patches Solaris 2.4 on SUN.
I run login from logdaemon-5.6 package which allows
/etc/login.access file which defines access control for users.
I also run s/key su and I have installed unix_scheme.so and these allow su
to root only for users in group 0.
I disabled root's logins via net (only from console) but the problem, when
username didn't match 'root' login searched through group file and found
So I disabled network logins for all people in group root, those who can su
to root. That would be 'nice' for security but it is not.
I thought group '0' can have other name (staff) but will that break
- if i change group '0' from 'root' to 'staff', scripts and commands using
setgid (root) and chgrp (root) wouldn't work
- if I add group 0 'staff' after group 'root' I'll have 2 groups with gid 0
which is not complete correct... and I don't know if the second group will
be taken with library functions...
Can anybody help ?
...and if you think I'm talking for my employer, you're wrong...