root_plug.c File Reference

#include <linux/config.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/fs.h>
#include <rsbac/types.h>
#include <rsbac/reg.h>
#include <rsbac/adf.h>
#include <rsbac/aci.h>
#include <rsbac/getname.h>
#include <rsbac/error.h>
#include <rsbac/proc_fs.h>
#include <linux/usb.h>

Go to the source code of this file.

Functions

 MODULE_AUTHOR ("Michal Purzynski")
 MODULE_DESCRIPTION ("RSBAC REG root_plug decision module")
 MODULE_LICENSE ("GPL")
 MODULE_PARM (vendor_id,"h")
 MODULE_PARM_DESC (vendor_id,"USB Vendor ID of device to look for")
 MODULE_PARM (product_id,"h")
 MODULE_PARM_DESC (product_id,"USB Product ID of device to look for")
static int request_func (enum rsbac_adf_request_t request, rsbac_pid_t owner_pid, enum rsbac_target_t target, union rsbac_target_id_t tid, enum rsbac_attribute_t attr, union rsbac_attribute_value_t attr_val, rsbac_uid_t owner)
int init_module (void)
void cleanup_module (void)

Variables

static long handle = 999999


Function Documentation

void cleanup_module void   ) 
 

Definition at line 130 of file root_plug.c.

References handle, and rsbac_reg_unregister().

int init_module void   ) 
 

Definition at line 101 of file root_plug.c.

References handle, request_func(), rsbac_reg_register(), RSBAC_REG_VERSION, and TRUE.

MODULE_AUTHOR "Michal Purzynski"   ) 
 

MODULE_DESCRIPTION "RSBAC REG root_plug decision module"   ) 
 

MODULE_LICENSE "GPL"   ) 
 

MODULE_PARM product_id  ,
"h" 
 

MODULE_PARM vendor_id  ,
"h" 
 

MODULE_PARM_DESC product_id  ,
"USB Product ID of device to look for" 
 

MODULE_PARM_DESC vendor_id  ,
"USB Vendor ID of device to look for" 
 

static int request_func enum rsbac_adf_request_t  request,
rsbac_pid_t  owner_pid,
enum rsbac_target_t  target,
union rsbac_target_id_t  tid,
enum rsbac_attribute_t  attr,
union rsbac_attribute_value_t  attr_val,
rsbac_uid_t  owner
[static]
 

Definition at line 55 of file root_plug.c.

References DO_NOT_CARE, NOT_GRANTED, NULL, rsbac_attribute_value_t::owner, R_CHANGE_GROUP, R_CHANGE_OWNER, R_CLONE, and T_PROCESS.


Variable Documentation

long handle = 999999 [static]
 

Definition at line 45 of file root_plug.c.


Generated on Fri Jun 17 09:45:30 2005 for RSBAC by  doxygen 1.4.2