Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Suggestion: increase username buffer size in busybox login
@ 2012-08-14 13:47 Dmitry Golubovsky
  2012-08-14 17:07 ` Yann E. MORIN
  0 siblings, 1 reply; 7+ messages in thread
From: Dmitry Golubovsky @ 2012-08-14 13:47 UTC (permalink / raw)
  To: buildroot

Hi,

Would anybody object to increase the size of the username buffer that
busybox login has:

loginutils/login.c, line 37

enum {
	TIMEOUT = 60,
	EMPTY_USERNAME_COUNT = 10,
	USERNAME_SIZE = 32,
	TTYNAME_SIZE = 32,
};

I would like to submit a patch to increase USERNAME_SIZE to 256.

My rationale is (disclaimer: mainly influenced by my own
buildroot-based project): now that we have PAM in place, more
interesting login schemes are possible such as authentication against
some remote host/domain which asks for usernames like user at host or
user at domain (or domain\user).

Where did the size 32 come from?

Or would it be better to raise this with busybox developers?

Thanks.

-- 
Dmitry Golubovsky

Anywhere on the Web

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-08-17 13:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-14 13:47 [Buildroot] Suggestion: increase username buffer size in busybox login Dmitry Golubovsky
2012-08-14 17:07 ` Yann E. MORIN
2012-08-15  3:18   ` Dmitry Golubovsky
2012-08-17 12:30     ` Thomas Petazzoni
2012-08-17 12:46       ` Dmitry Golubovsky
2012-08-17 13:17         ` Thomas Petazzoni
2012-08-17 13:40           ` Dmitry Golubovsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox