lkml.org 
[lkml]   [2004]   [Sep]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [patch] to add device+inode check to ipt_owner.c - HACKED UP
    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@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 14:06    [W:0.023 / U:2.948 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site