"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "security/integrity/ima/ima_fs.c" between
linux-3.16.62.tar.xz and linux-3.16.63.tar.xz

About: The full source of the Linux kernel 3.16.x (longterm stable)

ima_fs.c  (linux-3.16.62.tar.xz):ima_fs.c  (linux-3.16.63.tar.xz)
skipping to change at line 29 skipping to change at line 29
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/seq_file.h> #include <linux/seq_file.h>
#include <linux/rculist.h> #include <linux/rculist.h>
#include <linux/rcupdate.h> #include <linux/rcupdate.h>
#include <linux/parser.h> #include <linux/parser.h>
#include "ima.h" #include "ima.h"
static int valid_policy = 1; static int valid_policy = 1;
#define TMPBUFLEN 12
static ssize_t ima_show_htable_value(char __user *buf, size_t count, static ssize_t ima_show_htable_value(char __user *buf, size_t count,
loff_t *ppos, atomic_long_t *val) loff_t *ppos, atomic_long_t *val)
{ {
char tmpbuf[TMPBUFLEN]; char tmpbuf[32]; /* greater than largest 'long' string value */
ssize_t len; ssize_t len;
len = scnprintf(tmpbuf, TMPBUFLEN, "%li\n", atomic_long_read(val)); len = scnprintf(tmpbuf, sizeof(tmpbuf), "%li\n", atomic_long_read(val));
return simple_read_from_buffer(buf, count, ppos, tmpbuf, len); return simple_read_from_buffer(buf, count, ppos, tmpbuf, len);
} }
static ssize_t ima_show_htable_violations(struct file *filp, static ssize_t ima_show_htable_violations(struct file *filp,
char __user *buf, char __user *buf,
size_t count, loff_t *ppos) size_t count, loff_t *ppos)
{ {
return ima_show_htable_value(buf, count, ppos, &ima_htable.violations); return ima_show_htable_value(buf, count, ppos, &ima_htable.violations);
} }
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)