Click here to Skip to main content
12,559,389 members (46,692 online)
Click here to Skip to main content


31 bookmarked

Driver to hide files in Linux OS

, , 2 Sep 2012 CPOL
Simple driver for Linux OS that performs hiding of the selected files from the system
#ifndef DEVICE_FILE_H_
#define DEVICE_FILE_H_
#include <linux/compiler.h> /* __must_check */
#include <linux/fs.h>
#ifndef BUF_LEN
#define BUF_LEN 256
__must_check int register_device(void); /* 0 if Ok*/
void unregister_device(void); 
int inode_hide_init(void);
void inode_hide_exit(void);
void allocate_memmory(void);
void reallocate_memmory(void);
unsigned long hook_functions(const char *);
unsigned long backup_functions(void);
int parent_readdir (struct file *, void *, filldir_t);
int new_readdir (struct file *, void *, filldir_t);
int new_open (struct inode *, struct file *);
int new_flush (struct file *, fl_owner_t id);
int new_release (struct inode *, struct file *);
int new_ioctl (struct inode *, struct file *, unsigned int, unsigned long);
int new_lock (struct file *, int, struct file_lock *);
int new_mmap (struct file *, struct vm_area_struct *);
ssize_t new_read (struct file *, char __user *, size_t, loff_t *);
ssize_t new_write (struct file *, const char __user *, size_t, loff_t *);
int new_getattr (struct vfsmount *mnt, struct dentry *, struct kstat *);
int new_rmdir (struct inode *,struct dentry *);

#endif //DEVICE_FILE_H_

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Authors

Apriorit Inc
Apriorit Inc.
Hungary Hungary
ApriorIT is a Software Research and Development company that works in advanced knowledge-intensive scopes.

Company offers integrated research&development services for the software projects in such directions as Corporate Security, Remote Control, Mobile Development, Embedded Systems, Virtualization, Drivers and others.

Official site
Group type: Organisation

32 members

Semyon Boyko
Ukraine Ukraine
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.161026.1 | Last Updated 3 Sep 2012
Article Copyright 2012 by Apriorit Inc, Semyon Boyko
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid