Click here to Skip to main content
13,139,773 members (42,096 online)
Click here to Skip to main content

Stats

23.9K views
533 downloads
32 bookmarked
Posted 22 Aug 2012

Driver to hide files in Linux OS

, , 2 Sep 2012
Simple driver for Linux OS that performs hiding of the selected files from the system
DriverForHideFiles
DriverForHideFiles
Makefile
#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
#endif
__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.

License

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

Share

About the Authors

Apriorit Inc
Apriorit Inc.
Hungary Hungary
This member doesn't quite have enough reputation to be able to display their biography and homepage.
Group type: Organisation

32 members


Semyon Boyko
Ukraine Ukraine
No Biography provided

You may also be interested in...

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