![]() With copy the destination label is as wanted. root root unconfined_u:object_r:user_tmp_t:s0 incorrect.html root root unconfined_u:object_r:httpd_sys_content_t:s0 correct-2.html root root unconfined_u:object_r:httpd_sys_content_t:s0 correct-1.html root root unconfined_u:object_r:user_tmp_t:s0 /tmp/b.html root root unconfined_u:object_r:user_tmp_t:s0 /tmp/a.html root root system_u:object_r:httpd_sys_content_t:s0 I try to demonstrate what I mean (with httpd, not ejabberd): Maybe the http_upload module does move the file from a temporary location to /srv/data/ejabberd/ and the label from tmpdir is preserved? If that works, it could be the httpd_upload module that causes wrong labels I basically want to run some specific functions in the module for various inputs and make sure the output is correct and I do need the server part running for this?Īny suggestions/pointers would be really appreciated.First you could try to create files manually in /srv/data/ejabberd and verify if the files are correctly labeled, but above looks good to me. home/ec2-user/ejabberd/logs/raw.log 2>&1 failed with error: 1 and output:ĮRROR: ct failed while processing /home/ec2-user/ejabberd: rebar_abortĪlso, is there a recommended framework to write ejabberd/erlang unit tests? include /home/ec2-user/ejabberd/deps/xmpp/include > include /home/ec2-user/ejabberd/deps/fast_xml/include ![]() group mnesia -ct_hooks cth_surefire -include /home/ec2-user/ejabberd/tools cover /home/ec2-user/ejabberd/cover.spec -suite test/ejabberd_SUITE.erl "/home/ec2-user/ejabberd/logs" -env TEST_DIR "/home/ec2-user/ejabberd/test" "/usr/local/bin/rebar" "/home/ec2-user/ejabberd/." -include "/home/ec2-user/ejabberd/include" "/home/ec2-user/ejabberd/deps/lager/ebin" "/usr/local/bin/rebar/rebar/ebin" "/home/ec2-user/ejabberd/deps/uuid/ebin" "/home/ec2-user/ejabberd/deps/erlcloud/ebin" "/home/ec2-user/ejabberd/deps/xmpp/ebin" "/home/ec2-user/ejabberd/deps/cache_tab/ebin" "/home/ec2-user/ejabberd/deps/pkix/ebin" "/home/ec2-user/ejabberd/deps/p1_oauth2/ebin" "/home/ec2-user/ejabberd/deps/mqtree/ebin" "/home/ec2-user/ejabberd/deps/eimp/ebin" "/home/ec2-user/ejabberd/deps/meck/ebin" "/home/ec2-user/ejabberd/deps/goldrush/ebin" "/home/ec2-user/ejabberd/deps/eini/ebin" "/home/ec2-user/ejabberd/deps/jsx/ebin" "/home/ec2-user/ejabberd/deps/lhttpc/ebin" "/home/ec2-user/ejabberd/deps/proper/ebin" "/home/ec2-user/ejabberd/deps/base16/ebin" "/home/ec2-user/ejabberd/deps/fast_xml/ebin" "/home/ec2-user/ejabberd/deps/unicode_util_compat/ebin" ![]() "/home/ec2-user/ejabberd/deps/ezlib/ebin" "/home/ec2-user/ejabberd/deps/fast_tls/ebin" "/home/ec2-user/ejabberd/deps/fast_yaml/ebin" "/home/ec2-user/ejabberd/deps/stringprep/ebin" "/home/ec2-user/ejabberd/deps/p1_utils/ebin" "/home/ec2-user/ejabberd/deps/base64url/ebin" "/home/ec2-user/ejabberd/deps/yconf/ebin" "/home/ec2-user/ejabberd/deps/jiffy/ebin" "/home/ec2-user/ejabberd/deps/jose/ebin" "/home/ec2-user/ejabberd/deps/idna/ebin" I installed rebar and made sure to have a running ejabberd server and followed the steps here to:īut I get the following error: ejabberd]$CT_BACKENDS=mnesia rebar ct suites=ejabberd groups=mnesiaĮRROR: ct_run -noshell -pa "/home/ec2-user/ejabberd/ebin" How do I run ejabberd tests in the test folder?
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |