> On Fri, Apr 17, 2020 at 09:14:49AM -0600, Todd C. Miller wrote:
>> On Fri, 17 Apr 2020 09:11:15 -0600, "Raymond, David" wrote:
>>
>> > I noticed that chattr exists on OpenBSD.  The man page says it applies
>> > to Linux file systems (ext* etc).  Two questions:
>> >
>> > 1. Does this also apply to OpenBSD's fast file system?  (The man page
>> > would suggest not.)
>>
>> No.
>>

I see here "chattr +i" does set the uchg flag in a ffs filesystem.

root@localhost:~# ls -lo /etc/resolv.conf
-rw-r--r--  1 root  wheel  - 21 Mar 13 08:18 /etc/resolv.conf

root@localhost:~# chattr +i /etc/resolv.conf

root@localhost:~# ls -lo /etc/resolv.conf
-rw-r--r--  1 root  wheel  uchg 21 Mar 13 08:18 /etc/resolv.conf


>> > 2. If not, is it of any use on OpenBSD?
>>
>> Not unless you are using one of the Linux ext* file systems on
>> OpenBSD.  For native OpenBSD file systems you can use the BSD
>> chflags(8) command.
>>
>>  - todd
>>
>>
>
> At least lsattr shows flags set by chflags.
>
> --
> Henri Järvinen
>
>

-- 
Fabio Martins


Reply via email to