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
No events planned
This shows you the differences between two versions of the page.
team:kang:code [2005/10/07 13:01] kang created |
team:kang:code [2005/10/07 13:02] kang |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | * //Function to show RSBAC's UM hashes...// | + | |
- | <code c> | + | |
- | 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> | + |