team:kang:code
=>  Releases

Current version
Git/Latestdiff: 1.5.6

Latest Snapshots
Produced after each commit or rebase to new upstream version

GIT
RSBAC source code, can be unstable sometimes

=>  Events

No events planned

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
team:kang:code [2005/10/07 13:02]
kang
team:kang:code [2006/05/02 15:40] (current)
Line 1: Line 1:
 +  * //Function to show RSBAC'​s UM hashes...//​ 
 +<code c> 
 +/* type: will just show that string before printing 
 + * hash: well, the hash! ;) 
 + */ 
 +int rsbac_show_hash(char *type, char *hash) 
 +{      
 +        char *p; 
 +        int x, len = 0; 
 +        p = rsbac_kmalloc(100);​ 
 +        for(x=0; x<​RSBAC_UM_PASS_LEN;​x++) 
 +                len += sprintf(p+len,​ "​0x%x",​ hash[x]); 
 +        rsbac_printk(KERN_INFO "hash %s: %s\n", type, p); 
 +        rsbac_kfree(p);​ 
 +        return 0; 
 +
 +</​code>​
//


This website is kindly hosted by m-privacy