aboutsummaryrefslogtreecommitdiff
path: root/samples/bpf/task_fd_query_user.c
diff options
context:
space:
mode:
Diffstat (limited to 'samples/bpf/task_fd_query_user.c')
-rw-r--r--samples/bpf/task_fd_query_user.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/samples/bpf/task_fd_query_user.c b/samples/bpf/task_fd_query_user.c
index f6b772faa348..a78025b0026b 100644
--- a/samples/bpf/task_fd_query_user.c
+++ b/samples/bpf/task_fd_query_user.c
@@ -310,7 +310,6 @@ cleanup:
int main(int argc, char **argv)
{
- struct rlimit r = {RLIM_INFINITY, RLIM_INFINITY};
extern char __executable_start;
char filename[256], buf[256];
__u64 uprobe_file_offset;
@@ -318,11 +317,6 @@ int main(int argc, char **argv)
struct bpf_object *obj;
int i = 0, err = -1;
- if (setrlimit(RLIMIT_MEMLOCK, &r)) {
- perror("setrlimit(RLIMIT_MEMLOCK)");
- return err;
- }
-
if (load_kallsyms()) {
printf("failed to process /proc/kallsyms\n");
return err;