mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 14:58:30 +00:00
Introduce CPUID detection for Blink
This commit is contained in:
parent
4922bc4890
commit
3da887c58f
12 changed files with 19 additions and 14 deletions
|
@ -354,7 +354,7 @@ int sys_unveil_linux(const char *path, const char *permissions) {
|
|||
int unveil(const char *path, const char *permissions) {
|
||||
int e, rc;
|
||||
e = errno;
|
||||
if (IsGenuineCosmo()) {
|
||||
if (IsGenuineCosmo() || IsGenuineBlink()) {
|
||||
rc = 0; // blink doesn't support landlock
|
||||
} else if (IsLinux()) {
|
||||
rc = sys_unveil_linux(path, permissions);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue