Exploit databaseDownload repository ZIP
GH-4140da88982b84eb665215cb2539458b
nikitapbst/cve-2019-6260
Sources for CVE-2019-6260
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files64
nikitapbst/cve-2019-6260Revision 448a6209326d
- arch/
- ccan/
- cmd/
- licenses/
- uart/
- .gitignore
- LICENCE
- Makefile
- README.md
- ahb.c
- ahb.h
- array.h
- ast.c
- ast.h
- bits.h
- clk.c
- clk.h
- config.h
- console.h
- debug.c
- debug.h
- devmem.c
- devmem.h
- doit.c
- flash.c
- flash.h
- ilpc.c
- ilpc.h
- l2a.c
- l2a.h
- log.c
- log.h
- lpc.h
- mb.h
- mmio.c
- mmio.h
- otp.c
- otp.h
- p2a.c
- p2a.h
- pci.c
- pci.h
- ppc.h
- priv.c
- priv.h
- prompt.c
- prompt.h
- rev.c
- rev.h
- sfc.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
priv.c
C · 346 bytes// SPDX-License-Identifier: Apache-2.0
// Copyright (C) 2018,2019 IBM Corp.
#include "log.h"
#include "priv.h"
#include <errno.h>
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
bool priv_am_root(void)
{
return !geteuid();
}
void priv_print_unprivileged(const char *name)
{
loge("%s needs to be run as root\n", name);
}