2015-02-24 19 views
6

Video akışı için nodewebkit ve webrtc tabanlı bir masaüstü uygulaması oluşturuyorum. Oluştururken, getusermedia API kullanmaya çalışıyorum ama Linux kutumda aşağıdaki hatayı alıyorum.node-webkit (nw.js) Ubuntu 12.04 LTS SUID sanal görüntü hatası

[15464:0224/125017:ERROR: browser_main_loop.cc(162)] Running without the SUID sandbox! See https://code.google.com/p/chro ... for more information on developing with the sandbox on. ATTENTION: default value of option force_s3tc_enable overridden by environment.

Google'ın bazı yardımlarıyla, suid ile ilgili ayrıntıları aşağıda öğrendim.

SUID (Set owner User ID up on execution) is a special type of file permissions given to a file. Normally in Linux/Unix when a program runs, it inherits access permissions from the logged in user. SUID is defined as giving temporary permissions to a user to run a program/file with the permissions of the file owner rather that the user who runs it. In simple words users will get file owner’s permissions as well as owner UID and GID when executing a file/program/command

Anlayışıma göre, node-webkit'in (nw.js) çalışması için sanal alana gerek yoktur. Yanlışım varsa lütfen düzelt. Mac OS X Mavericks'de aynı nw uygulamasını çalıştırıyorum ve kusursuz çalışıyor. Aşağıdaki sorular yüzünden burada gerçekten kafam karıştı.

  1. (Ben nw.js github sayfasından tür direktifleri bulamadım gerçi) Linux üzerinde nw çalıştırmadan önce bir krom sandbox yüklemeli miyim?

  2. Yapılmıyorsa, Ubuntu 12.04 LTS'ye ne tür değişiklikler yapmam gerekiyor ki, bu yüzden başvurum bir sanal alan istemeyecek mi? senin package.json bu ekleme

cevap

2

Dene:

"chromium-args": "--disable-setuid-sandbox"

O kullandığını nw.js krom örneğinde sandbox devre dışı bırakır.

1

Node-webkit'te sandbox kullanılmadığı/gerekmediği için mesaj göz ardı edilebilir. Bu iletiyle ilgili bir sorun var aslında in the bug tracker.

İlgili konular