lkml.org 
[lkml]   [1999]   [Jun]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Improving the Unix API
Date
From
> .. but there remained one that garbled meta-data had made into a
> non-existing block device, that would resist rm -f. He realized
> that the device had an immutable attribute. However, the problem is
> that to change the attribute, you have to open the file before you
> can ioctl() on it;

BSD4.4 and its progeny deal with this by providing both chflags() and
fchflags() system calls; as you don't need to be able to do an open()
call to use chflags(), you can just fix the immutable attribute once
you have the system running at an appropriate securelevel.

- Bill

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.051 / U:0.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site