mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-08 02:18:53 +00:00
new headers
This commit is contained in:
parent
5b80664c5e
commit
1ce1e17902
22
include/osquery/kernel/linux/hash.h
Normal file
22
include/osquery/kernel/linux/hash.h
Normal file
@ -0,0 +1,22 @@
|
||||
// Copyright 2004-present Facebook. All Rights Reserved.
|
||||
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* @brief XXX
|
||||
*
|
||||
* @param foo this is what foo does
|
||||
*
|
||||
* @return XXX
|
||||
*/
|
||||
unsigned char *kernel_text_hash(void);
|
||||
|
||||
/**
|
||||
* @brief XXX
|
||||
*
|
||||
* @param foo this is what foo does
|
||||
* @param bar this is what bar does
|
||||
*
|
||||
* @return XXX
|
||||
*/
|
||||
unsigned char *hash_data(const void *, size_t);
|
55
include/osquery/kernel/linux/sysfs.h
Normal file
55
include/osquery/kernel/linux/sysfs.h
Normal file
@ -0,0 +1,55 @@
|
||||
// Copyright 2004-present Facebook. All Rights Reserved.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <linux/kobject.h>
|
||||
|
||||
/**
|
||||
* @brief XXX
|
||||
*
|
||||
* @param foo this is what foo does
|
||||
*
|
||||
* @return XXX
|
||||
*/
|
||||
int expose_sysfs(void);
|
||||
|
||||
/**
|
||||
* @brief XXX
|
||||
*
|
||||
* @param foo this is what foo does
|
||||
* @param bar this is what bar does
|
||||
* @param baz this is what baz does
|
||||
*
|
||||
* @return XXX
|
||||
*/
|
||||
ssize_t text_segment_hash_show(struct kobject *, struct attribute *, char *);
|
||||
|
||||
|
||||
/**
|
||||
* @brief XXX
|
||||
*/
|
||||
struct camb_attr {
|
||||
/// This is what this is
|
||||
struct attribute attr;
|
||||
|
||||
/// This is what that is
|
||||
int value;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
unsigned char *kernel_text_hash(void);
|
||||
|
||||
/**
|
||||
* @brief XXX
|
||||
*
|
||||
* @param foo this is what foo does
|
||||
* @param bar this is what bar does
|
||||
*
|
||||
* @return XXX
|
||||
*/
|
||||
unsigned char *hash_data(const void *, size_t);
|
@ -42,10 +42,10 @@ unsigned char *hash_data(const void *data, size_t len) {
|
||||
out_len,
|
||||
"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x"
|
||||
"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",
|
||||
hashtext[0], hashtext[1], hashtext[2], hashtext[3],
|
||||
hashtext[4], hashtext[5], hashtext[6], hashtext[7],
|
||||
hashtext[8], hashtext[9], hashtext[10], hashtext[11],
|
||||
hashtext[12], hashtext[13], hashtext[14], hashtext[15],
|
||||
hashtext[0], hashtext[1], hashtext[2], hashtext[3],
|
||||
hashtext[4], hashtext[5], hashtext[6], hashtext[7],
|
||||
hashtext[8], hashtext[9], hashtext[10], hashtext[11],
|
||||
hashtext[12], hashtext[13], hashtext[14], hashtext[15],
|
||||
hashtext[16], hashtext[17], hashtext[18], hashtext[19]
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user