summaryrefslogtreecommitdiffstats
path: root/drivers/misc/tegra-profiler/auth.h
blob: 6862bd5c0921bcb00469d5484db134cead30cc26 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * drivers/misc/tegra-profiler/auth.h
 *
 * Copyright (c) 2014-2018, NVIDIA CORPORATION.  All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms and conditions of the GNU General Public License,
 * version 2, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 *
 */

#ifndef __QUADD_AUTH_H__
#define __QUADD_AUTH_H__

struct quadd_ctx;

int quadd_auth_is_debuggable(const char *package_name, uid_t *uid);
int quadd_auth_is_auth_open(void);

int quadd_auth_init(struct quadd_ctx *quadd_ctx);
void quadd_auth_deinit(void);

#endif	/* __QUADD_AUTH_H__ */