!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/ext2/   drwxr-xr-x
Free 318.39 GB of 458.09 GB (69.5%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     ioctl.c (2.14 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
 * linux/fs/ext2/ioctl.c
 *
 * Copyright (C) 1993, 1994, 1995
 * Remy Card (card@masi.ibp.fr)
 * Laboratoire MASI - Institut Blaise Pascal
 * Universite Pierre et Marie Curie (Paris VI)
 */

#include <linux/fs.h>
#include <linux/ext2_fs.h>
#include <linux/sched.h>
#include <asm/uaccess.h>


int ext2_ioctl (struct inode * inode, struct file * filp, unsigned int cmd,
        unsigned long arg)
{
    unsigned int flags;

    ext2_debug ("cmd = %u, arg = %lu\n", cmd, arg);

    switch (cmd) {
    case EXT2_IOC_GETFLAGS:
        flags = inode->u.ext2_i.i_flags & EXT2_FL_USER_VISIBLE;
        return put_user(flags, (int *) arg);
    case EXT2_IOC_SETFLAGS: {
        unsigned int oldflags;

        if (IS_RDONLY(inode))
            return -EROFS;

        if ((current->fsuid != inode->i_uid) && !capable(CAP_FOWNER))
            return -EPERM;

        if (get_user(flags, (int *) arg))
            return -EFAULT;

        oldflags = inode->u.ext2_i.i_flags;

        /*
         * The IMMUTABLE and APPEND_ONLY flags can only be changed by
         * the relevant capability.
         *
         * This test looks nicer. Thanks to Pauline Middelink
         */
        if ((flags ^ oldflags) & (EXT2_APPEND_FL | EXT2_IMMUTABLE_FL)) {
            if (!capable(CAP_LINUX_IMMUTABLE))
                return -EPERM;
        }

        flags = flags & EXT2_FL_USER_MODIFIABLE;
        flags |= oldflags & ~EXT2_FL_USER_MODIFIABLE;
        inode->u.ext2_i.i_flags = flags;

        if (flags & EXT2_SYNC_FL)
            inode->i_flags |= S_SYNC;
        else
            inode->i_flags &= ~S_SYNC;
        if (flags & EXT2_APPEND_FL)
            inode->i_flags |= S_APPEND;
        else
            inode->i_flags &= ~S_APPEND;
        if (flags & EXT2_IMMUTABLE_FL)
            inode->i_flags |= S_IMMUTABLE;
        else
            inode->i_flags &= ~S_IMMUTABLE;
        if (flags & EXT2_NOATIME_FL)
            inode->i_flags |= S_NOATIME;
        else
            inode->i_flags &= ~S_NOATIME;
        inode->i_ctime = CURRENT_TIME;
        mark_inode_dirty(inode);
        return 0;
    }
    case EXT2_IOC_GETVERSION:
        return put_user(inode->i_generation, (int *) arg);
    case EXT2_IOC_SETVERSION:
        if ((current->fsuid != inode->i_uid) && !capable(CAP_FOWNER))
            return -EPERM;
        if (IS_RDONLY(inode))
            return -EROFS;
        if (get_user(inode->i_generation, (int *) arg))
            return -EFAULT;    
        inode->i_ctime = CURRENT_TIME;
        mark_inode_dirty(inode);
        return 0;
    default:
        return -ENOTTY;
    }
}

:: 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.0244 ]--