![]() |
|
|||
0001 // SPDX-License-Identifier: GPL-2.0 0002 #include <linux/bpf.h> 0003 #include <bpf/bpf_helpers.h> 0004 #include <bpf/bpf_endian.h> 0005 0006 volatile __u64 test_get_constant = 0; 0007 SEC("freplace/get_constant") 0008 int security_new_get_constant(long val) 0009 { 0010 if (val != 123) 0011 return 0; 0012 test_get_constant = 1; 0013 return test_get_constant; /* original get_constant() returns val - 122 */ 0014 } 0015 char _license[] SEC("license") = "GPL";
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |