Re: Holding ref to /proc/<pid> dentry prevents task being freed

From: Chris Wright
Date: Thu May 05 2005 - 11:37:42 EST


* bmerry@xxxxxxxxxxxx (bmerry@xxxxxxxxxxxx) wrote:
> I'm busy writing a security module that does some very basic ACL stuff
> on a per-task basis. If my module obtains and holds a dentry for
> /proc/<pid> (via path_lookup), then the task_free_security hook is
> never called for that process. Since the module releases the dentry in
> task_free_security, this creates a chicken-and-egg problem and neither
> the task nor the dentry is ever released. A side-effect is that the
> module refcount never drops to 0.

Why are you holding that dentry? Some more background please.

thanks,
-chris
--
Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/