Re: [patch] to add device+inode check to ipt_owner.c - HACKED UP

From: viro
Date: Wed Sep 08 2004 - 05:49:04 EST


On Wed, Sep 08, 2004 at 11:39:22AM +0100, Luke Kenneth Casson Leighton wrote:
> +static int
> +match_inode(const struct sk_buff *skb, const char *devname, unsigned long i_num)
> +{
> + struct task_struct *g, *p;
> + struct files_struct *files;
> + /*
> + struct inode *inode;
> + struct super_block *sb;
> + struct block_device *bd;
> + */
> + int i;
> + read_lock(&tasklist_lock);
> +
> + /* lkcl: these are fairly obvious (just obtuse): hunt for the
> + * filesystem device, then its superblock, then the inode is
> + * relevant to that superblock, _then_ we can find the inode.
> + bd = bdget(dev);


... the hell? Where does that "dev" come from?
-
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/