lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20101029142752.GF26242@lsanfilippo.unix.rd.tt.avira.com>
Date:	Fri, 29 Oct 2010 16:27:52 +0200
From:	Lino Sanfilippo <LinoSanfilippo@....de>
To:	Eric Paris <eparis@...hat.com>
Cc:	linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org
Subject: Re: Ensure FMODE_NONOTIFY is not set by userspace

On Fri, Oct 29, 2010 at 09:52:50AM -0400, Eric Paris wrote:
> 
> Did you find a place where the user was able to set FMODE_NONOTIFY?
> That would be a problem.  But that's not what is happening here and
> that's not what you are fixing.

I know its not happening here, but doing something like

#define MY_FLAG 0x1000000

 open("file/within/fanotify_protection", O_RDONLY | MY_FLAG);

from userspace is all that is needed to be ignored by fanotify :)
There is nothing that checks if this flag has been set by userspace (or 
did I miss something?)

Beside this since the flag should only be set within create_fd() or
fanotify_init() there should never be a situation where 
fsnotify_open() is called with a FMODE_NONOTIFY set (by the kernel).

Regards,
Lino 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ