!C99Shell v. 1.0 pre-release build #13!

Software: Apache/2.0.54 (Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.54 OpenSSL/0.9.7l DAV/2 FrontPage/5.0.2.2635 PHP/4.4.0 mod_gzip/2.0.26.1a 

uname -a: Linux snow.he.net 4.4.276-v2-mono-1 #1 SMP Wed Jul 21 11:21:17 PDT 2021 i686 

uid=99(nobody) gid=98(nobody) groups=98(nobody) 

Safe-mode: OFF (not secure)

/usr/src/linux-2.4.18-xfs-1.1/fs/nfsd/   drwxr-xr-x
Free 318.34 GB of 458.09 GB (69.49%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     lockd.c (2.01 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
 * linux/fs/nfsd/lockd.c
 *
 * This file contains all the stubs needed when communicating with lockd.
 * This level of indirection is necessary so we can run nfsd+lockd without
 * requiring the nfs client to be compiled in/loaded, and vice versa.
 *
 * Copyright (C) 1996, Olaf Kirch <okir@monad.swb.de>
 */

#include <linux/types.h>
#include <linux/sunrpc/clnt.h>
#include <linux/sunrpc/svc.h>
#include <linux/nfsd/nfsd.h>
#include <linux/lockd/bind.h>

#define NFSDDBG_FACILITY        NFSDDBG_LOCKD

/*
 * Note: we hold the dentry use count while the file is open.
 */
static u32
nlm_fopen(struct svc_rqst *rqstp, struct nfs_fh *f, struct file *filp)
{
    u32        nfserr;
    struct svc_fh    fh;

    /* must initialize before using! but maxsize doesn't matter */
    fh_init(&fh,0);
    fh.fh_handle.fh_size = f->size;
    memcpy((char*)&fh.fh_handle.fh_base, f->data, f->size);
    fh.fh_export = NULL;

    nfserr = nfsd_open(rqstp, &fh, S_IFREG, MAY_LOCK, filp);
    if (!nfserr) {
        dget(filp->f_dentry);
        mntget(filp->f_vfsmnt);
    }
    fh_put(&fh);
     /* nlm and nfsd don't share error codes.
     * we invent: 0 = no error
     *            1 = stale file handle
     *          2 = other error
     */
    switch (nfserr) {
    case nfs_ok:
        return 0;
    case nfserr_stale:
        return 1;
    default:
        return 2;
    }
}

static void
nlm_fclose(struct file *filp)
{
    nfsd_close(filp);
    dput(filp->f_dentry);
    mntput(filp->f_vfsmnt);
}

struct nlmsvc_binding        nfsd_nlm_ops = {
    exp_readlock,        /* lock export table for reading */
    exp_unlock,        /* unlock export table */
    exp_getclient,        /* look up NFS client */
    nlm_fopen,        /* open file for locking */
    nlm_fclose,        /* close file */
    exp_nlmdetach,        /* lockd shutdown notification */
};

/*
 * When removing an NFS client entry, notify lockd that it is gone.
 * FIXME: We should do the same when unexporting an NFS volume.
 */
void
nfsd_lockd_unexport(struct svc_client *clnt)
{
    nlmsvc_invalidate_client(clnt);
}

void
nfsd_lockd_init(void)
{
    dprintk("nfsd: initializing lockd\n");
    nlmsvc_ops = &nfsd_nlm_ops;
}

void
nfsd_lockd_shutdown(void)
{
    nlmsvc_ops = NULL;
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0186 ]--