ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* Re: [sisyphus] LXC и Kernel 5.1
  @ 2019-07-12 12:16 ` Dmitry V. Levin
  0 siblings, 0 replies; only message in thread
From: Dmitry V. Levin @ 2019-07-12 12:16 UTC (permalink / raw)
  To: ALT Sisyphus mailing list

[-- Attachment #1: Type: text/plain, Size: 1365 bytes --]

Hi,

On Fri, Jul 12, 2019 at 02:48:02PM +0300, Игорь Андросов wrote:
> Приветствую коллеги.
> 
> Вчера обновил Sisyphus и получил не запускающий lxc на kernel 5.1, но
> работающий на 5.0, вывод при запуске и быстрый просмотр привел к этим
> участкам кода в lxc:
> 
> int lxc_raw_pidfd_send_signal(int pidfd, int sig, siginfo_t *info,			
>     unsigned int flags){#ifdef
> __NR_pidfd_send_signal	syscall(__NR_pidfd_send_signal, pidfd, sig,
> info, flags);#else	errno = ENOSYS;#endif	return -1;}
> 
>  и
> 
> static int proc_pidfd_open(pid_t pid){	__do_close_prot_errno int
> proc_pidfd = -EBADF;	char path[100];	snprintf(path, sizeof(path),
> "/proc/%d", pid);	proc_pidfd = open(path, O_DIRECTORY | O_RDONLY |
> O_CLOEXEC);	if (proc_pidfd < 0) {		SYSERROR("Failed to open %s",
> path);		return -1;	}	/* Test whether we can send signals. */	if
> (lxc_raw_pidfd_send_signal(proc_pidfd, 0, NULL, 0))
> {		SYSERROR("Failed to send signal through pidfd");		return
> -1;	}	return move_fd(proc_pidfd);}
> 
> Что на мой взгляд не будет работать от слова никогда,
> 
> В
> https://gitlab.kaist.ac.kr/3rdparty/lxc/commit/cf38fe06aca7306cb244d0c7301b2d0589084d63
> вроде как фикс на это.

FWIW, фикс правильный.

P.S. Игорь, я специально процитировал всё ваше письмо, чтобы всем было
очевидно, как выглядит его текстовая часть.


-- 
ldv

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-07-12 12:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-12 12:16 ` [sisyphus] LXC и Kernel 5.1 Dmitry V. Levin

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git