Vláda USA nařídila společnosti Anthropic pozastavit přístup k modelům Fable 5 a Mythos 5 pro všechny cizince, včetně zaměstnanců Anthropicu.
Společnost Murena představila (YouTube) novou verzi 4.0 mobilního operačního systému /e/OS (Wikipedie) založeného na Androidu a LineageOS bez aplikací a služeb od Googlu.
V Arch User Repository (AUR) bylo kompromitováno přes 400 opomíjených balíčků (jejich seznam). Útočník do nich začlenil škodlivý npm balíček atomic-lockfile, který krade citlivá data uživatelů. Publikována byla předběžná analýza spouštěného malwaru deps.
Homebrew, správce balíčků nejen pro macOS, byl vydán ve verzi 6.0.0 (seznam změn). Hlavními novinkami jsou bezpečnostní mechanismus tap trust kvůli důvěryhodnosti závislostí, vylepšení sandboxingu na Linuxu, interní JSON API nebo zlepšení výkonu.
Byla nalezena a 9. června opravena kritická zranitelnost ve FreeBSD v Kernel TLS (KTLS). Pojmenována byla Bumsrakete (FreeBSD-SA-26:26.ktls, CVE-2026-45257). Lokální neprivilegovaný uživatel může přepisovat soubory, ke kterým má právo pouze pro čtení. Přepsáním setuid binárky a jejím spuštěním může získat roota. Na všech verzích od verze 13.0 vydané v dubnu 2021.
Vývojáři open source operačního systému ReactOS (Wikipedie), jehož cílem je kompletní binární kompatibilita s aplikacemi a ovladači pro Windows, se na síti 𝕏 pochlubili, že ReactOS zvládne počítačovou hru Half-Life.
Byla vydána nová verze 4.8 multiplatformního integrovaného vývojového prostředí (IDE) pro rychlý vývoj aplikaci (RAD) ve Free Pascalu Lazarus (Wikipedie). Využíván je Free Pascal Compiler (FPC) 3.2.2.
Apple container dospěl do verze 1.0.0. Jedná se o open source nástroj pro spouštění linuxových kontejnerů na macOS postavený nad containerization. Napsaný je v programovacím jazyce Swift a optimalizovaný pro Apple silicon.
Bylo vydáno Eclipse IDE 2026-06 aneb Eclipse 4.40. Představení novinek tohoto integrovaného vývojového prostředí také na YouTube.
Asterinas (GitHub) je v Rustu napsané jádro operačního systému poskytující s jádrem Linux kompatibilní ABI. Vydána byla verze 0.18.0. První distribucí postavenou nad jádrem Asterinas je Asterinas NixOS. Nejedná se o oficiální projekt NixOS a nemá nic společného s NixOS Foundation.
#define EVENT_SIZE ( sizeof (struct inotify_event) )
#define BUF_LEN ( 1024 * ( EVENT_SIZE + 16 ) )
int main(int argc, char **argv)
{
int length, i = 0;
int fd;
int wd;
char buffer[BUF_LEN];
fd = inotify_init();
if (fd < 0) {
perror("inotify_init");
}
wd = inotify_add_watch(fd, "/home/tomesh/Dropbox/C/sync", IN_ALL_EVENTS);
if (length < 0) {
perror("read");
}
while (1) {
length = read(fd, buffer, BUF_LEN);
struct inotify_event *event = (struct inotify_event *) &buffer[ i ];
if (event->len) {
if (event->mask & IN_CREATE) {
if (event->mask & IN_ISDIR) {
printf("The directory %s was created.\n", event->name);
} else {
printf("The file %s was created.\n", event->name);
}
}
if (event->mask & IN_DELETE) {
if (event->mask & IN_ISDIR) {
printf("The directory %s was deleted.\n", event->name);
} else {
printf("The file %s was deleted.\n", event->name);
}
}
if (event->mask & IN_MODIFY) {
if (event->mask & IN_ISDIR) {
printf("The directory %s was modified.\n", event->name);
} else {
printf("The file %s was modified.\n", event->name);
}
}
if (event->mask & IN_MOVED_FROM) {
if (event->mask & IN_ISDIR) {
printf("The directory %s with cookie %d was moved from.\n", event->name, event->cookie);
} else {
printf("The file %s with cookie %d was moved from.\n", event->name, event->cookie);
}
}
if (event->mask & IN_MOVED_TO) {
if (event->mask & IN_ISDIR) {
printf("The directory %s with cookie %d was moved to.\n", event->name, event->cookie);
} else {
printf("The file %s with cookie %d was moved to.\n", event->name, event->cookie);
}
}
if (event->mask & IN_MOVE_SELF) {
if (event->mask & IN_ISDIR) {
printf("The directory %s with cookie %ds was itself moved.\n", event->name, event->cookie);
} else {
printf("The file %s with cookie %d was itself moved.\n", event->name, event->cookie);
}
}
if (event->mask & IN_DELETE_SELF) {
if (event->mask & IN_ISDIR) {
printf("The directory %s with cookie %d was itself deleted.\n", event->name, event->cookie);
} else {
printf("The file %s with cookie %d was itself deleted.\n", event->name, event->cookie);
}
}
if (event->mask & IN_OPEN) {
if (event->mask & IN_ISDIR) {
printf("The directory %s with cookie %d was opened.\n", event->name, event->cookie);
} else {
printf("The file %s with cookie %d was opened.\n", event->name, event->cookie);
}
}
if (event->mask & IN_ATTRIB) {
if (event->mask & IN_ISDIR) {
printf("The directory %s with cookie %d attr was changed.\n", event->name, event->cookie);
} else {
printf("The file %s with cookie %d attr was changed.\n", event->name, event->cookie);
}
}
if (event->mask & IN_ACCESS) {
if (event->mask & IN_ISDIR) {
printf("The directory %s with cookie %d was accessed.\n", event->name, event->cookie);
} else {
printf("The file %s with cookie %d was accessed.\n", event->name, event->cookie);
}
}
}
}
(void) inotify_rm_watch(fd, wd[0]);
(void) close(fd);
exit(0);
}
Řešení dotazu:
i += EVENT_SIZE + event->len;
#define EVENT_SIZE ( sizeof (struct inotify_event) )
#define BUF_LEN ( 1024 * ( EVENT_SIZE + 16 ) )
int main(int argc, char **argv)
{
int length, i;
int fd;
int wd;
char buffer[BUF_LEN];
struct inotify_event *event;
fd = inotify_init();
if (fd < 0)
perror("inotify_init");
wd = inotify_add_watch(fd, "/home/tomesh/Dropbox/C/sync", IN_ALL_EVENTS);
while (1) {
i = 0;
length = read(fd, buffer, BUF_LEN);
if (length < 0)
perror("read");
if (length == 0)
sleep(1);
while (i < length) {
event = (struct inotify_event *) &buffer[i];
if (event->mask & IN_CREATE) {
if (event->mask & IN_ISDIR) {
printf("The directory %s was created.\n", event->name);
} else {
printf("The file %s was created.\n", event->name);
}
}
if (event->mask & IN_DELETE) {
if (event->mask & IN_ISDIR) {
printf("The directory %s was deleted.\n", event->name);
} else {
printf("The file %s was deleted.\n", event->name);
}
}
if (event->mask & IN_MODIFY) {
if (event->mask & IN_ISDIR) {
printf("The directory %s was modified.\n", event->name);
} else {
printf("The file %s was modified.\n", event->name);
}
}
if (event->mask & IN_MOVED_FROM) {
if (event->mask & IN_ISDIR) {
printf("The directory %s with cookie %d was moved from.\n", event->name, event->cookie);
} else {
printf("The file %s with cookie %d was moved from.\n", event->name, event->cookie);
}
}
if (event->mask & IN_MOVED_TO) {
if (event->mask & IN_ISDIR) {
printf("The directory %s with cookie %d was moved to.\n", event->name, event->cookie);
} else {
printf("The file %s with cookie %d was moved to.\n", event->name, event->cookie);
}
}
if (event->mask & IN_MOVE_SELF) {
if (event->mask & IN_ISDIR) {
printf("The directory %s with cookie %ds was itself moved.\n", event->name, event->cookie);
} else {
printf("The file %s with cookie %d was itself moved.\n", event->name, event->cookie);
}
}
if (event->mask & IN_DELETE_SELF) {
if (event->mask & IN_ISDIR) {
printf("The directory %s with cookie %d was itself deleted.\n", event->name, event->cookie);
} else {
printf("The file %s with cookie %d was itself deleted.\n", event->name, event->cookie);
}
}
if (event->mask & IN_ATTRIB) {
if (event->mask & IN_ISDIR) {
printf("The directory %s with cookie %d attr was changed.\n", event->name, event->cookie);
} else {
printf("The file %s with cookie %d attr was changed.\n", event->name, event->cookie);
}
}
if (event->mask & IN_ACCESS) {
if (event->mask & IN_ISDIR) {
printf("The directory %s with cookie %d was accessed.\n", event->name, event->cookie);
} else {
printf("The file %s with cookie %d was accessed.\n", event->name, event->cookie);
}
}
i += sizeof(struct inotify_event) +event->len;
}
}
(void) inotify_rm_watch(fd, wd);
(void) close(fd);
exit(0);
}
Tiskni
Sdílej: