From: Ahmed S. Darwish Date: Mon, 24 Mar 2008 19:29:49 +0000 (-0700) Subject: smackfs: remove redundant lock, fix open(,O_RDWR) X-Git-Tag: v2.6.25-rc7~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb622bbb69e41f2746aadf5d7d527e77597abe2e;p=pandora-kernel.git smackfs: remove redundant lock, fix open(,O_RDWR) Older smackfs was parsing MAC rules by characters, thus a need of locking write sessions on open() was needed. This lock is no longer useful now since each rule is handled by a single write() call. This is also a bugfix since seq_open() was not called if an open() O_RDWR flag was given, leading to a seq_read() without an initialized seq_file, thus an Oops. Signed-off-by: Ahmed S. Darwish Reported-by: Jonathan Corbet Acked-by: Casey Schaufler Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed