Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Feb 2012 19:20:15 GMT
From:      Mattias Lindgren <mlindgren@gmail.com>
To:        freebsd-fs@FreeBSD.org
Subject:   Re: kern/149495: [zfs] chflags sappend on zfs not working right
Message-ID:  <201202201920.q1KJKFXE058032@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/149495; it has been noted by GNATS.

From: Mattias Lindgren <mlindgren@gmail.com>
To: bug-followup@FreeBSD.org, daniel@zhelev.biz
Cc:  
Subject: Re: kern/149495: [zfs] chflags sappend on zfs not working right
Date: Mon, 20 Feb 2012 11:49:52 -0700

 --e0cb4efe31b482a54904b969c2c3
 Content-Type: text/plain; charset=ISO-8859-1
 
 Having similar issues in FreeBSD 9-AMD64 with ZFS v 28
 
 $ mkdir critical
 $ touch critical/critical.log
 $ sudo chmod o= critical
 
 $ sudo chflags sappnd critical
 $ sudo chflags sappnd critical/*
 
 $ echo "test" > critical/critical.log
 -bash: critical/critical.log: Operation not permitted
 $ echo "test" >> critical/critical.log
 $ grep test critical/critical.log
 test
 $ rm -rf critical/critical.log
 $ ls -l critical/
 total 0
 
 Am under the impression that I should not be able to delete files once the
 sappend flag has been set.
 
 Please let me know if you'd like me to do further testing.
 
 Thanks,
 
 Mattias
 
 --e0cb4efe31b482a54904b969c2c3
 Content-Type: text/html; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable
 
 Having similar issues in FreeBSD 9-AMD64 with ZFS v 28<div><br></div><div><=
 div>$ mkdir critical</div><div>$ touch critical/critical.log
 </div><div>$ sudo chmod o=3D critical</div><div><br></div><div>$ sudo chfla=
 gs sappnd critical</div><div>$ sudo chflags sappnd critical/*</div><div><br=
 ></div><div>$ echo &quot;test&quot; &gt; critical/critical.log</div><div>
 -bash: critical/critical.log: Operation not permitted</div><div>$ echo &quo=
 t;test&quot; &gt;&gt; critical/critical.log</div><div>$ grep test critical/=
 critical.log</div><div>test</div><div>$ rm -rf critical/critical.log</div>
 </div><div>$ ls -l critical/</div><div>total 0</div><div><br></div><div>Am =
 under the impression that I should not be able to delete files once the sap=
 pend flag has been set. =A0</div><div><br></div><div>Please let me know if =
 you&#39;d like me to do further testing.</div>
 <div><br></div><div>Thanks,</div><div><br></div><div>Mattias</div><div><br>=
 </div>
 
 --e0cb4efe31b482a54904b969c2c3--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202201920.q1KJKFXE058032>