Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
util-vserver vs hardened profile
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
SerjVarshavskiy
n00b
n00b


Joined: 28 Jun 2005
Posts: 26

PostPosted: Tue Jun 28, 2005 6:04 pm    Post subject: util-vserver vs hardened profile Reply with quote

не хотит компилировать dev-libs/dietlibc-0.25
и sys-cluster/util-vserver-0.30.196

выдает undefined reference to `__guard' и еще что-то
подавил это для dev-libs/dietlibc-0.25 с помощью -fomit-frame-pointer -fno-stack-protector-all -fno-stack-protector -nopie

но sys-cluster/util-vserver-0.30.196 выдает

src/keep-ctx-alive.o(.text+0x27e): In function `handleMessage':
: undefined reference to `accept'
src/keep-ctx-alive.o(.text+0x2bd): In function `handleMessage':
: undefined reference to `recv'
src/keep-ctx-alive.o(.text+0x367): In function `sendQuitSignal':
: undefined reference to `socket'
src/keep-ctx-alive.o(.text+0x3a3): In function `sendQuitSignal':
: undefined reference to `connect'
src/keep-ctx-alive.o(.text+0x3ff): In function `sendQuitSignal':
: undefined reference to `send'
src/keep-ctx-alive.o(.text+0x52a): In function `doit':
: undefined reference to `socket'
src/keep-ctx-alive.o(.text+0x561): In function `doit':
: undefined reference to `bind'
src/keep-ctx-alive.o(.text+0x586): In function `doit':
: undefined reference to `listen'


кто-нибудь с hardened профилем ставил vserver?
Back to top
View user's profile Send private message
EdiG
n00b
n00b


Joined: 05 Apr 2005
Posts: 62
Location: Russia/Moscow

PostPosted: Wed Jun 29, 2005 7:48 am    Post subject: Reply with quote

http://dev.gentoo.org/~hollow/vserver/
http://list.linux-vserver.org/archive/vserver/index.html
http://www.gentoo.org/doc/en/vserver-howto.xml
а случайно не amd64
ядро какое?
Back to top
View user's profile Send private message
SerjVarshavskiy
n00b
n00b


Joined: 28 Jun 2005
Posts: 26

PostPosted: Wed Jun 29, 2005 11:45 am    Post subject: Reply with quote

ядро linux-2.6.11.6-vserver-1.9.5
пень4 2.8Ггц

1 и 3 ссылки я использовал для построения vserver
без hardened всё работает, но с ним не хотит util-vserver компилиться
Back to top
View user's profile Send private message
EdiG
n00b
n00b


Joined: 05 Apr 2005
Posts: 62
Location: Russia/Moscow

PostPosted: Thu Jun 30, 2005 7:25 am    Post subject: Reply with quote

надо util-vserver-0.30.207 dev-libs/dietlibc-0.28
комп. или править исходник src/keep-ctx-alive.c
Code:
static void handleMessage(int fd)
{
  char                  buf[128];
  size_t                len;
  struct sockaddr_un    addr;
  socklen_t             addr_len = sizeof(addr);
  int                   new_fd   = Eaccept(fd, &addr, &addr_len);

  len = Erecv(new_fd, buf, sizeof buf,0);
  if (len==0) exit(1);
 
    // TODO: handle message???
  exit(0);static int
sendQuitSignal(char const *filename, char const *msg)
{
  int                   fd;
  struct sockaddr_un    addr;

  ENSC_INIT_UNIX_SOCK(addr, filename);
  fd = Esocket(PF_UNIX, SOCK_STREAM, 0);
  Econnect(fd, &addr, sizeof(addr));

  if (msg) EsendAll(fd, msg, strlen(msg));
  Eclose(fd);

  return EXIT_SUCCESS;
}

}
Back to top
View user's profile Send private message
viy
Veteran
Veteran


Joined: 03 Jul 2004
Posts: 1580
Location: Riga, Latvia

PostPosted: Thu Jun 30, 2005 8:02 am    Post subject: Reply with quote

Яай!

Этот код точно вылетит с ошибкой, первая функция без закрывающей скобки и лишняя скобка в конце.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum